Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 SEQUENCE int   Default = 0 Stores the user-defined sequence for solicit codes on a constituent.
 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.
 STARTDATE datetime Store the date when the solicit code becomes effective.
 ENDDATE datetime Store the date when the solicit code expires
 COMMENTS nvarchar(100)   Default = '' Store comments for this solicit code.

Foreign Key Field Type Null Notes Description
 CONSTITUENTID uniqueidentifier   CONSTITUENT.LOCALID FK to CONSTITUENT
 SOLICITCODEID uniqueidentifier   SOLICITCODE.ID Store the link to SolicitCode table
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_CONSTITUENTSOLICITCODE_CONSTITUENTID CONSTITUENTID      
 IX_CONSTITUENTSOLICITCODE_DATEADDED DATEADDED    
 IX_CONSTITUENTSOLICITCODE_DATECHANGED DATECHANGED      
 IX_CONSTITUENTSOLICITCODE_SOLICITCODEID SOLICITCODEID      
 PK_CONSTITUENTSOLICITCODE ID  

Trigger Name Description
 TR_CONSTITUENTSOLICITCODE_AUDIT_UPDATE
 TR_CONSTITUENTSOLICITCODE_AUDIT_DELETE
 TR_CONSTITUENTSOLICITCODE_TASYNC_I
 TR_CONSTITUENTSOLICITCODE_TASYNC_U
 TR_CONSTITUENTSOLICITCODE_TASYNC_D

Entity-Relationship diagram of this table