payment_methods table

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

Display fragments and a processor token only. Raw card data never touches this database.

Columns (8)

Columns of the payment_methods table
ColumnTypeConstraintsDescription
iduuidprimary key
customer_iduuidnot null, references customers.id
brandvarchar(40)
last4char(4)
exp_monthsmallint
exp_yearsmallint
processor_tokenvarchar(255)not null
is_defaultbooleannot null

Relationships