documents


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id INT UNSIGNED 10 null
uuid CHAR 36 null
account_id INT UNSIGNED 10 null
accounts.id documents_account_id_foreign C
contact_id INT UNSIGNED 10 null
contacts.id documents_contact_id_foreign C
original_filename VARCHAR 255 null
new_filename VARCHAR 255 null
filesize INT 10 null
type VARCHAR 255 null
mime_type VARCHAR 255 null
number_of_downloads INT 10 0
created_at TIMESTAMP 19 null
updated_at TIMESTAMP 19 null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
documents_account_id_uuid_index Performance Asc/Asc account_id + uuid
documents_contact_id_foreign Performance Asc contact_id

Relationships