SWDB
← Versions / 6.7.0.1 /

order_line_item

Fields (29)

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 NO NULL
unit_price double YES NULL VIRTUAL GENERATED
total_price double YES NULL VIRTUAL GENERATED
type varchar(255) YES NULL
payload json YES NULL
price_definition json YES NULL
price json NO NULL
stackable tinyint(1) NO 1
removable tinyint(1) NO 1
good tinyint(1) NO 1
position int NO 1
custom_fields json YES NULL
created_at datetime(3) NO NULL
updated_at datetime(3) YES NULL
states json 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

Relations From (8)

cover_id media . id
order_id order . id
order_version_id order . version_id
parent_id order_line_item . id
parent_version_id order_line_item . version_id
promotion_id promotion . id
product_id product . id
product_version_id product . version_id

Referenced By (8)

order_delivery_position . order_line_item_id id
order_delivery_position . order_line_item_version_id version_id
order_line_item . parent_id id
order_line_item . parent_version_id version_id
order_line_item_download . order_line_item_id id
order_line_item_download . order_line_item_version_id version_id
order_transaction_capture_refund_position . order_line_item_version_id version_id