SWDB
← Versions / 6.5.8.0 /

order

Fields (33)

Name Type Null Key Default Extra
id binary(16) NO PRI NULL
version_id binary(16) NO PRI NULL
state_id binary(16) NO MUL NULL
auto_increment bigint unsigned NO UNI NULL auto_increment
order_number varchar(64) YES MUL NULL
currency_id binary(16) NO MUL NULL
language_id binary(16) NO MUL NULL
currency_factor double YES NULL
sales_channel_id binary(16) NO MUL NULL
billing_address_id binary(16) NO NULL
billing_address_version_id binary(16) NO NULL
price json NO NULL
order_date_time datetime(3) NO NULL
order_date date YES MUL NULL STORED GENERATED
amount_total double YES NULL VIRTUAL GENERATED
amount_net double YES NULL VIRTUAL GENERATED
position_price double YES NULL VIRTUAL GENERATED
tax_status varchar(255) YES NULL VIRTUAL GENERATED
shipping_costs json NO NULL
shipping_total double YES NULL VIRTUAL GENERATED
deep_link_code varchar(32) YES MUL NULL
custom_fields json YES NULL
affiliate_code varchar(255) YES NULL
campaign_code varchar(255) YES NULL
customer_comment longtext YES NULL
created_at datetime(3) NO NULL
updated_at datetime(3) YES NULL
item_rounding json YES NULL
total_rounding json YES NULL
rule_ids json YES NULL
created_by_id binary(16) YES MUL NULL
updated_by_id binary(16) YES MUL NULL
source varchar(255) YES NULL

Indexes (11)

Name Columns Unique
fk.language_id language_id No
fk.order.created_by_id created_by_id No
fk.order.currency_id currency_id No
fk.order.sales_channel_id sales_channel_id No
fk.order.updated_by_id updated_by_id No
idx.order_date_currency_id order_date,currency_id No
idx.order_number order_number No
idx.state_index state_id No
PRIMARY id,version_id Yes
uniq.auto_increment auto_increment Yes
uniq.deep_link_code deep_link_code,version_id Yes

Relations From (5)

language_id language . id
created_by_id user . id
currency_id currency . id
sales_channel_id sales_channel . id
updated_by_id user . id

Referenced By (14)

document . order_id id
document . order_version_id version_id
order_address . order_id id
order_address . order_version_id version_id
order_customer . order_id id
order_customer . order_version_id version_id
order_delivery . order_id id
order_delivery . order_version_id version_id
order_line_item . order_id id
order_line_item . order_version_id version_id
order_tag . order_id id
order_tag . order_version_id version_id
order_transaction . order_id id
order_transaction . order_version_id version_id