Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ADVOCACYGROUPID smallint   Default = ((0)) Advocacy group ID
 LEGISID nvarchar(10)   Default = '' legislator ID
 SENDTYPECODE tinyint   Default = 0 Send Type
 SENDTYPE nvarchar(2) (Computed) CASE [SENDTYPECODE] WHEN 0 THEN N'To' WHEN 1 THEN N'CC' END Provides a translation for the 'SENDTYPECODE' field.
 TARGETTYPECODE tinyint   Default = 0 Target Type
 TARGETTYPE nvarchar(6) (Computed) CASE [TARGETTYPECODE] WHEN 0 THEN N'LEGIS' WHEN 1 THEN N'MEDIA' WHEN 2 THEN N'CUSTOM' END Provides a translation for the 'TARGETTYPECODE' field.
 STATE nvarchar(5)   Default = '' State
 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.

Foreign Key Field Type Null Notes Description
 ACTIONITEMID uniqueidentifier   ACTION_ITEM.ID Action Item ID
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_ACTIONITEM_TARGET_ACTIONITEMID ACTIONITEMID      
 IX_ACTIONITEM_TARGET_DATEADDED DATEADDED    
 IX_ACTIONITEM_TARGET_DATECHANGED DATECHANGED      
 PK_ACTIONITEM_TARGET ID  

Trigger Name Description
 TR_ACTIONITEM_TARGET_AUDIT_UPDATE
 TR_ACTIONITEM_TARGET_AUDIT_DELETE

Entity-Relationship diagram of this table