Skip to main content

contracts

NameTypeStorageNullableForeign KeysDefault Value & Notes
PKIDintegerplainContract 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)
accountintegerplainaccounts.IDAccount ID
visibilitysmallintplainDefault: 0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
nametextmainName
contractnumtextmainDefault: ''Contract number
datebigintplainDefault: EXTRACT(epoch FROM now())Designated date and time as a Unix timestamp (defaults to current date and time on creation)
datefrombigintplainStart date as a Unix timestamp; must be less than or equal to `dateto`
datetobigintplainEnd date as a Unix timestamp; must be greater than or equal to `datefrom`
datecancelbigintplainCancellation date as a Unix timestamp
statussmallintplainDefault: 0Status (`0`=DRAFT, `1`=AWAITINGAPPROVAL, `2`=APPROVED, `3`=DISMISSED, `4`=ACTIVE, `5`=INACTIVE, `6`=EXPIRED, `7`=CANCELLED, `8`=CLOSED)
currencycharacter varying(3)extendedCurrency code (ISO 4217)
exchangeratedouble precisionplainDefault: 1Exchange rate as a multiple of one monetary unit of the fixed system currency
billingcyclesmallintplainBilling cycle in months
lastbillingbigintplainLast billing date and time as a Unix timestamp
descriptiontextextendedDefault: ''Detailed general description
contractitemsjsonextendedJSON-encoded items (array)
billingitemsjsonextendedJSON-encoded items (array)
procurementitemsjsonextendedJSON-encoded items (array)
autobillingjsonextendedJSON-encoded auto-billing data (object); only if `billingcycle` is not `null`
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_contracts_accountbtreeaccount
fk_contracts_assigneduserginassigneduser
fk_contracts_forkginfork
fk_contracts_ownergroupginownergroup
i_contracts_autobillingginstatus
i_contracts_datebtreedate
i_contracts_noforkginfork
i_contracts_noownerginownergroup
pk_contractsbtreeID
s_contracts_contractnumgincontractnum
s_contracts_nameginname
NameType
c_contracts_datecheck
dc_contracts_autobillingcheck
dc_contracts_billingcyclecheck
dc_contracts_billingitemscheck
dc_contracts_contractitemscheck
dc_contracts_contractnumcheck
dc_contracts_currencycheck
dc_contracts_descriptioncheck
dc_contracts_exchangeratecheck
dc_contracts_namecheck
dc_contracts_procurementitemscheck
dc_contracts_statuscheck
dc_contracts_visibilitycheck
fk_contracts_accountforeign_key
fk_contracts_assigneduserforeign_key
fk_contracts_creatorforeign_key
fk_contracts_forkforeign_key
fk_contracts_ownergroupforeign_key
pk_contractsprimary_key
Loading...