Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| order_item_id | int8 | 19 | √ | null |
|
|
注文商品ID |
||||||||||||||||||||||||||||||||||||||||
| order_id | int8 | 19 | null |
|
|
注文ID |
|||||||||||||||||||||||||||||||||||||||||
| product_id | int8 | 19 | null |
|
|
商品ID |
|||||||||||||||||||||||||||||||||||||||||
| order_date | timestamp | 29,6 | CURRENT_TIMESTAMP |
|
|
注文日時 |
|||||||||||||||||||||||||||||||||||||||||
| quantity | int4 | 10 | null |
|
|
注文数 |
|||||||||||||||||||||||||||||||||||||||||
| price | numeric | 10,2 | null |
|
|
注文時の商品の単価 |
|||||||||||||||||||||||||||||||||||||||||
| created_at | timestamp | 29,6 | CURRENT_TIMESTAMP |
|
|
作成日時 |
|||||||||||||||||||||||||||||||||||||||||
| updated_at | timestamp | 29,6 | CURRENT_TIMESTAMP |
|
|
更新日時 |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| order_item_pk | Primary key | Asc/Asc | order_item_id + order_date |