Skip to main content

accounts

NameTypeStorageNullableForeign KeysDefault Value & Notes
PKIDintegerplainAccount ID
forkintegerplainforks.IDFork ID (`null` for base module)
ownergroupintegerplaingroups.IDOwner group ID (`null`=PUBLIC)
creatorintegerplainusers.IDCreator user ID (defaults to authenticated user on creation)
assigneduserintegerplainusers.IDAssigned user ID
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)
contactintegerplaincontacts.IDContact ID
visibilitysmallintplainDefault: 0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
lastnametextmainDefault: ''Last name (surname or company name); is required if `firstname` is empty
firstnametextmainDefault: ''First name (given name); is required if `lastname` is empty
typesmallintplainDefault: 0Account type (`0`=PROSPECT, `1`=CUSTOMER, `2`=SUPPLIER, `3`=CUSTOMERANDSUPPLIER, `4`=COMPETITOR, `5`=EMPLOYEE)
customernumtextmainDefault: ''Customer number; only for PROSPECT, CUSTOMERANDSUPPLIER, CUSTOMER or EMPLOYEE
suppliernumtextmainDefault: ''Supplier number; only for SUPPLIER or CUSTOMERANDSUPPLIER
taxidtextextendedDefault: ''Tax ID (e.g. VATIN or SSN)
currencycharacter varying(3)extendedCurrency code (ISO 4217)
lockedsmallintplainDefault: 0Deny booking of billing or procurement transactions
excludetaxsmallintplainDefault: 0Exclude from taxation
descriptiontextextendedDefault: ''Detailed general description
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_accounts_assigneduserginassigneduser
fk_accounts_contactbtreecontact
fk_accounts_forkginfork
fk_accounts_ownergroupginownergroup
i_accounts_lastname_firstnamebtreelastname, firstname
i_accounts_noforkginfork
i_accounts_noownerginownergroup
pk_accountsbtreeID
s_accounts_customernumgincustomernum
s_accounts_firstnameginfirstname
s_accounts_lastnameginlastname
s_accounts_suppliernumginsuppliernum
NameType
c_accounts_namecheck
c_accounts_typecheck
dc_accounts_currencycheck
dc_accounts_customernumcheck
dc_accounts_descriptioncheck
dc_accounts_firstnamecheck
dc_accounts_lastnamecheck
dc_accounts_suppliernumcheck
dc_accounts_taxidcheck
dc_accounts_typecheck
dc_accounts_visibilitycheck
fk_accounts_assigneduserforeign_key
fk_accounts_contactforeign_key
fk_accounts_creatorforeign_key
fk_accounts_forkforeign_key
fk_accounts_ownergroupforeign_key
pk_accountsprimary_key
Loading...