DESIGNATIONCAMPAIGN (4.0SP12)

Defines campaigns to default on to revenue for designations.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

DESIGNATIONID

uniqueidentifier

false

FK to DESIGNATION

CAMPAIGNID

uniqueidentifier

false

FK to CAMPAIGN

CAMPAIGNSUBPRIORITYID

uniqueidentifier

true

FK to CAMPAIGNSUBPRIORITY

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DATEFROM

date

true

DATETO

date

true

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

SEQUENCE

int

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_DESIGNATIONCAMPAIGN_DATEADDED

DATEADDED

False

False

True

IX_DESIGNATIONCAMPAIGN_DATECHANGED

DATECHANGED

False

False

False

IX_DESIGNATIONCAMPAIGN_DESIGNATIONID_CAMPAIGNID_CAMPAIGNSUBPRIORITYID

DESIGNATIONID

CAMPAIGNID

CAMPAIGNSUBPRIORITYID

False

False

False

PK_DESIGNATIONCAMPAIGN

ID

True

True

False

Triggers
Trigger Name Description

TR_DESIGNATIONCAMPAIGN_AUDIT_UPDATE

TR_DESIGNATIONCAMPAIGN_AUDIT_DELETE