ADVOCACY_GROUP

Advocacy Group Lookup table

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
GROUPID smallint Default = ((0)) Group ID
TYPEID smallint Default = ((0)) Type ID
NAME nvarchar(100) Default = '' The name of the advocacy group
DISTRICT nvarchar(10) Default = '' The name of the district
COUNTRY nvarchar(10) Default = '' The abbreviation of country
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
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ADVOCACY_GROUP_DATEADDED DATEADDED yes
IX_ADVOCACY_GROUP_DATECHANGED DATECHANGED
PK_ADVOCACY_GROUP ID yes yes
UIX_ADVOCACY_GROUP_GROUPID_NAME GROUPID, NAME yes

Triggers

Trigger Name Description
TR_ADVOCACY_GROUP_AUDIT_UPDATE
TR_ADVOCACY_GROUP_AUDIT_DELETE