ACTIONITEM_TARGET
Stores targets for action item
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
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) |
yes |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
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. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ACTIONITEM_TARGET_ACTIONITEMID |
ACTIONITEMID |
|
|
|
IX_ACTIONITEM_TARGET_DATEADDED |
DATEADDED |
|
|
yes |
IX_ACTIONITEM_TARGET_DATECHANGED |
DATECHANGED |
|
|
|
PK_ACTIONITEM_TARGET |
ID |
yes |
yes |
|
Triggers