SWDB
← Versions / 6.5.7.2 /

document

Fields (15)

Name Type Null Key Default Extra
id binary(16) NO PRI NULL
document_type_id binary(16) NO MUL NULL
referenced_document_id binary(16) YES MUL NULL
file_type varchar(255) NO NULL
order_id binary(16) NO MUL NULL
order_version_id binary(16) NO NULL
config json YES NULL
sent tinyint(1) NO 0
static tinyint(1) NO 0
deep_link_code varchar(32) NO UNI NULL
document_media_file_id binary(16) YES MUL NULL
custom_fields json YES NULL
created_at datetime(3) NO NULL
updated_at datetime(3) YES NULL
document_number varchar(255) YES MUL NULL STORED GENERATED

Indexes (7)

Name Columns Unique
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 (5)

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

Referenced By (1)

document . referenced_document_id id