Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
order_id | INT UNSIGNED | 10 | √ | null |
|
|
|||||
status | enum('pending', 'cancelled', 'completed') | 9 | pending |
|
|
||||||
created_date | DATETIME | 19 | CURRENT_TIMESTAMP |
|
|
||||||
pickup_date | DATETIME | 19 | √ | null |
|
|
Date when client picks up his order at the store |
||||
client_id | INT UNSIGNED | 10 | √ | null |
|
|
|||||
store_id | INT UNSIGNED | 10 | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | order_id |
order_fk | Performance | Asc | client_id |
order_store_store_id_fk | Performance | Asc | store_id |