Fields (28)
| Name | Type | Null | Key | Default | Extra |
|---|---|---|---|---|---|
| id | binary(16) | NO | PRI | NULL | |
| version_id | binary(16) | NO | PRI | NULL | |
| order_id | binary(16) | NO | MUL | NULL | |
| order_version_id | binary(16) | NO | NULL | ||
| parent_id | binary(16) | YES | MUL | NULL | |
| parent_version_id | binary(16) | YES | NULL | ||
| identifier | varchar(255) | NO | NULL | ||
| referenced_id | varchar(255) | YES | NULL | ||
| product_id | binary(16) | YES | MUL | NULL | |
| product_version_id | binary(16) | YES | NULL | ||
| promotion_id | binary(16) | YES | MUL | NULL | |
| label | varchar(255) | NO | NULL | ||
| description | mediumtext | YES | NULL | ||
| cover_id | binary(16) | YES | MUL | NULL | |
| quantity | int(11) | NO | NULL | ||
| unit_price | double | YES | NULL | VIRTUAL GENERATED | |
| total_price | double | YES | NULL | VIRTUAL GENERATED | |
| type | varchar(255) | YES | NULL | ||
| payload | longtext | YES | NULL | ||
| price_definition | longtext | YES | NULL | ||
| price | longtext | NO | NULL | ||
| stackable | tinyint(1) | NO | 1 | ||
| removable | tinyint(1) | NO | 1 | ||
| good | tinyint(1) | NO | 1 | ||
| position | int(11) | NO | 1 | ||
| custom_fields | longtext | YES | NULL | ||
| created_at | datetime(3) | NO | NULL | ||
| updated_at | datetime(3) | YES | NULL |
Indexes (6)
| Name | Columns | Unique |
|---|---|---|
| fk.order_line_item.cover_id | cover_id | No |
| fk.order_line_item.order_id | order_id,order_version_id | No |
| fk.order_line_item.parent_id | parent_id,parent_version_id | No |
| fk.order_line_item.promotion_id | promotion_id | No |
| PRIMARY | id,version_id | Yes |
| product_id | product_id,product_version_id | No |