Skip to main content

records

NameTypeStorageNullableForeign KeysDefault Value & Notes
PKIDbigintplainRecord ID
forkintegerplainforks.IDFork ID (`null` for base module); inherited from entity
owneruserintegerplainusers.IDOwner user ID (PUBLIC if `owneruser`=`null` and `ownergroup`=`null`)
ownergroupintegerplaingroups.IDOwner group ID (PUBLIC if `owneruser`=`null` and `ownergroup`=`null`)
creatorintegerplainusers.IDCreator user ID (defaults to authenticated user on creation)
assigneduserintegerplainusers.IDAssigned user (recipient) ID; must be distinct from `creator`
creationdatebigintplainDefault: date_part('epoch', now())Creation date and time as a Unix timestamp (defaults to current date and time on creation)
lastmodifiedbigintplainDefault: date_part('epoch', now())Last modification date and time as a Unix timestamp (auto-reset on modification)
entityt_entityplainCanonical entity
indexintegerplainEntity ID; is required if `entity` is not `null`, otherwise must be `null`
channelintegerplainchannels.IDChannel ID
flagsmallintplainDefault: 0Flag (`0`=REGULAR, `1`=ASSOCONLY, `2`=MINDLOGONLY, `3`=MONITOR, `4`=FEED); must be REGULAR or FEED if `entity` is `null`
datebigintplainDefault: date_part('epoch', now())Designated date and time as a Unix timestamp (defaults to current date and time on creation)
stickydatebigintplainSticky date and time as a Unix timestamp
sendertextmainDefault: ''Sender
locationtextextendedDefault: ''Location (e.g. coordinates)
texttextextendedDefault: ''Record text (Markdown for rich text representation)
metajsonextendedJSON-encoded metadata (object)
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_records_assigneduserginassigneduser
fk_records_channelbtreechannel
fk_records_creatorgincreator
fk_records_forkginfork
fk_records_ownergroupginownergroup
fk_records_owneruserginowneruser
i_records_datebtreedate
i_records_entity_indexbtreeentity, index
i_records_noownerginownergroup
i_records_stickydatebtreestickydate
pk_recordsbtreeID
s_records_senderginsender
s_records_textgintext
NameType
c_records_associationcheck
c_records_ownercheck
dc_records_flagcheck
dc_records_locationcheck
dc_records_metacheck
dc_records_sendercheck
dc_records_textcheck
fk_records_assigneduserforeign_key
fk_records_channelforeign_key
fk_records_creatorforeign_key
fk_records_forkforeign_key
fk_records_ownergroupforeign_key
fk_records_owneruserforeign_key
pk_recordsprimary_key
Loading...