| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
GOAL |
money | Default = 0 | The goal for the priority 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 priority belongs to. | |
CAMPAIGNPRIORITYTYPECODEID |
uniqueidentifier | CAMPAIGNPRIORITYTYPECODE.ID | The type of the priority. | |
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_CAMPAIGNPRIORITY_CURRENCYEXCHANGERATEID |
CURRENCYEXCHANGERATEID | |||
IX_CAMPAIGNPRIORITY_DATEADDED |
DATEADDED | ![]() |
||
IX_CAMPAIGNPRIORITY_DATECHANGED |
DATECHANGED | |||
PK_CAMPAIGNPRIORITY |
ID | ![]() |
![]() |
|
UIX_CAMPAIGNPRIORITY_CAMPAIGNID_CAMPAIGNPRIORITYTYPECODEID |
CAMPAIGNID, CAMPAIGNPRIORITYTYPECODEID | ![]() |
| Trigger Name | Description |
|---|---|
TR_CAMPAIGNPRIORITY_T2BDELETE |
|
TR_CAMPAIGNPRIORITY_AUDIT_UPDATE |
|
TR_CAMPAIGNPRIORITY_AUDIT_DELETE |
|
TR_CAMPAIGNPRIORITY_IU_ORGANIZATIONAMOUNT |
| Referenced by | Field |
|---|---|
CAMPAIGNSUBPRIORITY |
CAMPAIGNPRIORITYID |

ID
GOAL
TSLONG
CAMPAIGNID
IX_CAMPAIGNPRIORITY_CURRENCYEXCHANGERATEID
IX_CAMPAIGNPRIORITY_DATEADDED