Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT UNSIGNED | 10 | √ | null |
|
|
Unique Campaign ID. |
|||||||||||||||||||||||||
| name | VARCHAR | 255 | null |
|
|
Name of the Campaign. |
||||||||||||||||||||||||||
| title | VARCHAR | 255 | √ | null |
|
|
Title of the Campaign. |
|||||||||||||||||||||||||
| description | TEXT | 65535 | √ | null |
|
|
Full description of Campaign. |
|||||||||||||||||||||||||
| start_date | DATETIME | 19 | √ | null |
|
|
Date and time that Campaign starts. |
|||||||||||||||||||||||||
| end_date | DATETIME | 19 | √ | null |
|
|
Date and time that Campaign ends. |
|||||||||||||||||||||||||
| campaign_type_id | INT UNSIGNED | 10 | √ | null |
|
|
Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type |
|||||||||||||||||||||||||
| status_id | INT UNSIGNED | 10 | √ | null |
|
|
Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status |
|||||||||||||||||||||||||
| external_identifier | VARCHAR | 32 | √ | null |
|
|
Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations. |
|||||||||||||||||||||||||
| parent_id | INT UNSIGNED | 10 | √ | null |
|
|
Optional parent id for this Campaign. |
|||||||||||||||||||||||||
| is_active | TINYINT | 3 | √ | 1 |
|
|
Is this Campaign enabled or disabled/cancelled? |
|||||||||||||||||||||||||
| created_id | INT UNSIGNED | 10 | √ | null |
|
|
FK to civicrm_contact, who created this Campaign. |
|||||||||||||||||||||||||
| created_date | DATETIME | 19 | √ | null |
|
|
Date and time that Campaign was created. |
|||||||||||||||||||||||||
| last_modified_id | INT UNSIGNED | 10 | √ | null |
|
|
FK to civicrm_contact, who recently edited this Campaign. |
|||||||||||||||||||||||||
| last_modified_date | DATETIME | 19 | √ | null |
|
|
Date and time that Campaign was edited last time. |
|||||||||||||||||||||||||
| goal_general | TEXT | 65535 | √ | null |
|
|
General goals for Campaign. |
|||||||||||||||||||||||||
| goal_revenue | DECIMAL | 20,2 | √ | null |
|
|
The target revenue for this campaign. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| FK_civicrm_campaign_created_id | Performance | Asc | created_id |
| FK_civicrm_campaign_last_modified_id | Performance | Asc | last_modified_id |
| FK_civicrm_campaign_parent_id | Performance | Asc | parent_id |
| UI_campaign_status_id | Performance | Asc | status_id |
| UI_campaign_type_id | Performance | Asc | campaign_type_id |
| UI_external_identifier | Must be unique | Asc | external_identifier |

