# Column Name Nullable Data Type Max Length Description
1attachment_idbigint0The primary key of this table, which is also a bigserial field.
2user_idinteger0Foreign key to the table office.users.
3resourcetext0
4resource_keytext0
5resource_idbigint0
6original_file_nametext0The name given to the attached file, which is also a unique field
7file_extensioncharacter varying12The extension of the attached file.
8file_pathtext0The location of the file.
9commentcharacter varying96Comment on the attachment.
10added_ontimestamp with time zone0Time & date when the attachment was added.

Foreign Keys

# Column Name Key Name References
2 user_id attachments_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
attachments_pkey postgres btree attachment_id
attachments_file_path_uix postgres btree upper(file_path)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 attachment_id nextval('core.attachments_attachment_id_seq'::regclass)
9 comment ''::character varying
10 added_on now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description