Skip to main content

campaigns

Module: campaigns

Marketing campaigns with status tracking and date ranges.

Status codes​

StatusActivityIDColor
DraftDRAFT0green
Not startedDRAFT1orange
Awaiting approvalDRAFT2orange
ApprovedOPEN3green
DismissedCANCELLED4red
ActiveOPEN5green
InactiveOPEN6orange
In EvaluationOPEN7green
CancelledCANCELLED8red
ClosedCLOSED9black
NameTypeNullableDefault ValueNotes
PKID
integerCampaign ID
fork
forks.ID
integerFork ID (`null` for base module)
ownergroup
groups.ID
integerOwner group ID (`null`=PUBLIC)
creator
integerCreator user ID (defaults to authenticated user on creation)
assigneduser
users.ID
integerAssigned user ID
creationdate
bigintdate_part('epoch', now())Creation date and time as a Unix timestamp (defaults to current date and time on creation)
lastmodified
bigintdate_part('epoch', now())Last modification date and time as a Unix timestamp (auto-reset on modification)
visibility
smallint0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
name
textName
datefrom
bigintStart date as a Unix timestamp; must be less than or equal to `dateto`
dateto
bigintEnd date as a Unix timestamp; must be greater than or equal to `datefrom`
status
smallint0Status (`0`=DRAFT, `1`=NOTSTARTED, `2`=AWAITINGAPPROVAL, `3`=APPROVED, `4`=DISMISSED, `5`=ACTIVE, `6`=INACTIVE, `7`=INEVALUATION, `8`=CANCELLED, `9`=CLOSED)
description
text''Detailed general description
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_campaigns_assigneduserginassigneduser
fk_campaigns_forkginfork
fk_campaigns_ownergroupginownergroup
i_campaigns_noforkginfork
i_campaigns_noownerginownergroup
pk_campaignsbtreeID
s_campaigns_nameginname
NameType
c_campaigns_datecheck
dc_campaigns_descriptioncheck
dc_campaigns_namecheck
dc_campaigns_statuscheck
dc_campaigns_visibilitycheck
fk_campaigns_assigneduserforeign_key
fk_campaigns_forkforeign_key
fk_campaigns_ownergroupforeign_key
pk_campaignsprimary_key
Loading...