gift_cards table

The gift_cards table in the E-commerce Database Schema schema has 8 columns, keyed by id, with 1 foreign key to customers. 1 column in gift_card_transactions references it.

Columns (8)

Columns of the gift_cards table
ColumnTypeConstraintsDescription
iduuidprimary key
codevarchar(40)unique, not null
initial_balance_centsintegernot null
balance_centsintegernot null
currencychar(3)not null
statusgift_card_statusnot null
issued_to_customer_iduuidreferences customers.id
expires_attimestamptz

Relationships