ADVOCACY_GROUP (4.0SP20)

Advocacy Group Lookup table

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

GROUPID

smallint

false

((0))

Group ID

TYPEID

smallint

false

((0))

Type ID

NAME

nvarchar(100)

false

''

The name of the advocacy group

DISTRICT

nvarchar(10)

false

''

The name of the district

COUNTRY

nvarchar(10)

false

''

The abbreviation of country

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_ADVOCACY_GROUP_DATEADDED

DATEADDED

False

False

True

IX_ADVOCACY_GROUP_DATECHANGED

DATECHANGED

False

False

False

PK_ADVOCACY_GROUP

ID

True

True

False

UIX_ADVOCACY_GROUP_GROUPID_NAME

GROUPID

NAME

True

False

False

Triggers
Trigger Name Description

TR_ADVOCACY_GROUP_AUDIT_UPDATE

TR_ADVOCACY_GROUP_AUDIT_DELETE