BATCHMEMBERSHIPDUESCAMPAIGN

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEADDED datetime Default = getdate()
DATECHANGED datetime Default = getdate()
TS timestamp
TSLONG bigint (Computed) yes CONVERT(bigint, TS)

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHMEMBERSHIPDUESID uniqueidentifier BATCHMEMBERSHIPDUES.ID
CAMPAIGNID uniqueidentifier CAMPAIGN.LOCALID
CAMPAIGNSUBPRIORITYID uniqueidentifier yes CAMPAIGNSUBPRIORITY.ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHMEMBERSHIPDUESCAMPAIGN_BATCHMEMBERSHIPDUESID BATCHMEMBERSHIPDUESID
IX_BATCHMEMBERSHIPDUESCAMPAIGN_DATEADDED DATEADDED yes
IX_BATCHMEMBERSHIPDUESCAMPAIGN_DATECHANGED DATECHANGED
PK_BATCHMEMBERSHIPDUESCAMPAIGN ID yes yes

Triggers

Trigger Name Description
TR_BATCHMEMBERSHIPDUESCAMPAIGN_AUDIT_UPDATE
TR_BATCHMEMBERSHIPDUESCAMPAIGN_AUDIT_DELETE