Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
payment_id | serial | 10 | √ | nextval('payment_payment_id_seq'::regclass) |
|
|
||||
customer_id | int2 | 5 | null |
|
|
|||||
staff_id | int2 | 5 | null |
|
|
|||||
rental_id | int4 | 10 | null |
|
|
|||||
amount | numeric | 5,2 | null |
|
|
|||||
payment_date | timestamp | 29,6 | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
idx_fk_payment_p2007_01_customer_id | Performance | Asc | customer_id |
idx_fk_payment_p2007_01_staff_id | Performance | Asc | staff_id |
Check Constraints
Constraint Name | Constraint |
---|---|
payment_p2007_01_payment_date_check | (((payment_date >= '2007-01-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-02-01 00:00:00'::timestamp without time zone))) |