← Shopware 6.7.7.1

Shopware 6.7.7.1 document

Columns

15 columns

Column Type Nullable Additional
id binary(16) NO Primary Key
document_type_id binary(16) NO Index Foreign Key → document_type.id
referenced_document_id binary(16) YES Index Foreign Key → document.id
order_id binary(16) NO Index Foreign Key → order.id
order_version_id binary(16) NO Foreign Key → order.version_id
config json YES
sent tinyint(1) NO Default: 0
static tinyint(1) NO Default: 0
deep_link_code varchar(32) NO Unique
document_media_file_id binary(16) YES Index Foreign Key → media.id
custom_fields json YES
created_at datetime(3) NO
updated_at datetime(3) YES
document_number varchar(255) YES Index, STORED GENERATED
document_a11y_media_file_id binary(16) YES Index Foreign Key → media.id

Indexes

8 indexes

Index Name Columns Unique
fk.document.document_a11y_media_file_id document_a11y_media_file_id No
fk.document.document_media_file_id document_media_file_id No
fk.document.document_type_id document_type_id No
fk.document.order_id order_id,order_version_id No
fk.document.referenced_document_id referenced_document_id No
idx.document.document_number document_number No
PRIMARY id Yes
uniq.deep_link_code deep_link_code Yes

Relations (from this table)

6 relations

Local Field Foreign Table Foreign Field
document_a11y_media_file_id media id
document_media_file_id media id
document_type_id document_type id
order_id order id
order_version_id order version_id
referenced_document_id document id

Relations (to this table)

1 relations

Local Field Foreign Table Foreign Field
id document referenced_document_id