Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| payment_id | SMALLINT UNSIGNED | 5 | √ | null |
|
|
||||
| customer_id | SMALLINT UNSIGNED | 5 | null |
|
|
|||||
| staff_id | TINYINT UNSIGNED | 3 | null |
|
|
|||||
| rental_id | INT | 10 | √ | null |
|
|
||||
| amount | DECIMAL | 5,2 | null |
|
|
|||||
| payment_date | DATETIME | 26 | null |
|
|
|||||
| last_update | TIMESTAMP | 26 | CURRENT_TIMESTAMP |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | payment_id |
| fk_payment_rental | Performance | Asc | rental_id |
| idx_fk_customer_id | Performance | Asc | customer_id |
| idx_fk_staff_id | Performance | Asc | staff_id |