Skip to main content

files

Module: main

File attachments linked to records or comments.

NameTypeNullableDefault ValueNotes
PKID
bigintFile ID
creator
integerCreator user ID (defaults to authenticated user on creation)
creationdate
bigintdate_part('epoch', now())Creation date and time as a Unix timestamp (defaults to current date and time on creation)
lastmodified
bigintEXTRACT(epoch FROM now())Last modification date and time as a Unix timestamp (auto-reset on modification)
record
records.ID
bigintRecord ID (**dependency**); is mutually exclusive to `comment` (either one is required)
comment
comments.ID
bigintComment ID (**dependency**); is mutually exclusive to `record` (either one is required)
binfile
binfiles.ID
integerBinary file ID; is read-only (not for `PUT` or `PATCH`)
filename
text''Filename
mimetype
text'application/octet-stream'MIME type (RFC 2045)
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_files_binfilebtreebinfile
fk_files_commentbtreecomment
fk_files_recordbtreerecord
pk_filesbtreeID
s_files_filenameginfilename
NameType
c_files_associationcheck
dc_files_filenamecheck
dc_files_mimetypecheck
fk_files_binfileforeign_key
fk_files_commentforeign_key
fk_files_recordforeign_key
pk_filesprimary_key
Loading...