CAMPAIGNSUBPRIORITY
Stores information about sub 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 subpriority 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. |
NAME |
nvarchar(100) (Computed) |
yes |
dbo.UFN_CAMPAIGNSUBPRIORITYNAMECODE_GETDESCRIPTION(CAMPAIGNSUBPRIORITYNAMECODEID) |
Returns subpriority name code table description. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
CAMPAIGNPRIORITYID |
uniqueidentifier |
|
CAMPAIGNPRIORITY.ID
|
The campaign priority the subpriority belongs to. |
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. |
CAMPAIGNSUBPRIORITYNAMECODEID |
uniqueidentifier |
|
CAMPAIGNSUBPRIORITYNAMECODE.ID
|
Translation for a campaign sub priority's name |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_CAMPAIGNSUBPRIORITY_CAMPAIGNPRIORITYID |
CAMPAIGNPRIORITYID |
|
|
|
IX_CAMPAIGNSUBPRIORITY_CURRENCYEXCHANGERATEID |
CURRENCYEXCHANGERATEID |
|
|
|
IX_CAMPAIGNSUBPRIORITY_DATEADDED |
DATEADDED |
|
|
yes |
IX_CAMPAIGNSUBPRIORITY_DATECHANGED |
DATECHANGED |
|
|
|
PK_CAMPAIGNSUBPRIORITY |
ID |
yes |
yes |
|
Triggers
Referenced by