CAMPAIGNPRIORITY
Stores information about priorities assigned to campaigns.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
ORGANIZATIONAMOUNT |
money |
|
Default = 0 |
The amount of the goal in organization currency. |
Foreign Keys
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 |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from amount to organization amount. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_CAMPAIGNPRIORITY_CURRENCYEXCHANGERATEID |
CURRENCYEXCHANGERATEID |
|
|
|
IX_CAMPAIGNPRIORITY_DATEADDED |
DATEADDED |
|
|
yes |
IX_CAMPAIGNPRIORITY_DATECHANGED |
DATECHANGED |
|
|
|
PK_CAMPAIGNPRIORITY |
ID |
yes |
yes |
|
UIX_CAMPAIGNPRIORITY_CAMPAIGNID_CAMPAIGNPRIORITYTYPECODEID |
CAMPAIGNID, CAMPAIGNPRIORITYTYPECODEID |
yes |
|
|
Triggers
Referenced by