| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
AMOUNT |
money | Default = 0 | The amount of the goal in the campaign's base currency. | |
DATEADDED |
datetime | Default = getdate() | Indicates the date this record was added. | |
DATECHANGED |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
TS |
timestamp | Timestamp. | ||
TSLONG |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
ORGANIZATIONAMOUNT |
money | Default = 0 | The amount of the goal in organization currency. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CAMPAIGNID |
uniqueidentifier | CAMPAIGN.LOCALID | The campaign the goal is for. | |
CAMPAIGNHIERARCHYGOALID |
uniqueidentifier | CAMPAIGNHIERARCHYGOAL.ID | The hierarchy goal that this goal supports. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CURRENCYEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert from amount to organization amount. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_CAMPAIGNGOAL_CURRENCYEXCHANGERATEID |
CURRENCYEXCHANGERATEID | |||
IX_CAMPAIGNGOAL_DATEADDED |
DATEADDED | ![]() |
||
IX_CAMPAIGNGOAL_DATECHANGED |
DATECHANGED | |||
PK_CAMPAIGNGOAL |
ID | ![]() |
![]() |
|
UIX_CAMPAIGNGOAL_CAMPAIGNID_CAMPAIGNHIERARCHYGOALID |
CAMPAIGNID, CAMPAIGNHIERARCHYGOALID | ![]() |
| Trigger Name | Description |
|---|---|
TR_CAMPAIGNGOAL_AUDIT_ETLDELETEDID |
|
TR_CAMPAIGNGOAL_T2BDELETE |
|
TR_CAMPAIGNGOAL_AUDIT_UPDATE |
|
TR_CAMPAIGNGOAL_AUDIT_DELETE |
|
TR_CAMPAIGNGOAL_IU_ORGANIZATIONAMOUNT |

ID
AMOUNT
TSLONG
CAMPAIGNID
IX_CAMPAIGNGOAL_CURRENCYEXCHANGERATEID
IX_CAMPAIGNGOAL_DATEADDED