Skip to main content

coupons

NameTypeStorageNullableForeign KeysDefault Value & Notes
PKIDintegerplainCoupon ID
forkintegerplainforks.IDFork ID (`null` for base module)
ownergroupintegerplaingroups.IDOwner group ID (`null`=PUBLIC)
creatorintegerplainusers.IDCreator user ID (defaults to authenticated user on creation)
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)
activitysmallintplainDefault: 0Activity (`0`=ACTIVE, `1`=DEACTIVATED, `2`=DELETED)
nametextmainName
typesmallintplainDefault: 0Coupon type (`0`=PROMOTION, `1`=INDIVIDUAL)
codetextmainDefault: ''Promotion code; only for PROMOTION
valuedouble precisionplainDefault: 0Default value
taxratedouble precisionplainTax rate in percent
neutralsmallintplainDefault: 0Neutral in transaction
datefrombigintplainStart date and time as a Unix timestamp; must be less than or equal to `dateto`
datetobigintplainEnd date and time as a Unix timestamp; must be greater than or equal to `datefrom`
descriptiontextextendedDefault: ''Detailed general description
foreigntaxratesjsonextendedCountry-specific tax rates in percent; use country code as object key
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_coupons_forkginfork
fk_coupons_ownergroupginownergroup
i_coupons_noforkginfork
i_coupons_noownerginownergroup
pk_couponsbtreeID
s_coupons_nameginname
u_coupons_codebtreecode
NameType
c_coupons_datecheck
c_coupons_typecheck
dc_coupons_activitycheck
dc_coupons_codecheck
dc_coupons_descriptioncheck
dc_coupons_foreigntaxratescheck
dc_coupons_namecheck
dc_coupons_taxratecheck
dc_coupons_typecheck
fk_coupons_creatorforeign_key
fk_coupons_forkforeign_key
fk_coupons_ownergroupforeign_key
pk_couponsprimary_key
NameTypeEventsFunctionDefinition
tiu_coupons_uniquebeforeinsert, updateftiu_coupons_unique
tu_coupons_typebeforeupdateft_integrity
Loading...