Shopware 6.3.3.0 order_line_item
Order line items — products, promotions, custom items, and credits with prices and quantities.
| Column | Type | Nullable | Additional |
| id | binary(16) | NO | Primary Key |
| version_id | binary(16) | NO | Primary Key |
| order_id | binary(16) | NO | Index
Foreign Key → order.id |
| order_version_id | binary(16) | NO |
Foreign Key → order.version_id |
| parent_id | binary(16) | YES | Index
Foreign Key → order_line_item.id |
| parent_version_id | binary(16) | YES |
Foreign Key → order_line_item.version_id |
| identifier | varchar(255) | NO | |
| referenced_id | varchar(255) | YES | |
| product_id | binary(16) | YES | Index
Foreign Key → product.id |
| product_version_id | binary(16) | YES |
Foreign Key → product.version_id |
| label | varchar(255) | NO | |
| description | mediumtext | YES | |
| cover_id | binary(16) | YES | Index
Foreign Key → media.id |
| quantity | int(11) | NO | |
| unit_price | double | YES | VIRTUAL GENERATED |
| total_price | double | YES | VIRTUAL GENERATED |
| type | varchar(255) | YES | |
| payload | longtext | YES | |
| price_definition | longtext | YES | |
| price | longtext | NO | |
| stackable | tinyint(1) | NO | Default: 1 |
| removable | tinyint(1) | NO | Default: 1 |
| good | tinyint(1) | NO | Default: 1 |
| position | int(11) | NO | Default: 1 |
| custom_fields | longtext | YES | |
| created_at | datetime(3) | NO | |
| updated_at | datetime(3) | YES | |
| Index 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 |
| PRIMARY | id,version_id | Yes |
| product_id | product_id,product_version_id | No |
Relations (from this table)
7 relations
Relations (to this table)
4 relations