| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| 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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_ADVOCACY_GROUP_DATEADDED |
DATEADDED | ![]() |
||
IX_ADVOCACY_GROUP_DATECHANGED |
DATECHANGED | |||
PK_ADVOCACY_GROUP |
ID | ![]() |
![]() |
|
UIX_ADVOCACY_GROUP_GROUPID_NAME |
GROUPID, NAME | ![]() |
| Trigger Name | Description |
|---|---|
TR_ADVOCACY_GROUP_AUDIT_UPDATE |
|
TR_ADVOCACY_GROUP_AUDIT_DELETE |

ID
GROUPID
TSLONG
ADDEDBYID
IX_ADVOCACY_GROUP_DATEADDED
IX_ADVOCACY_GROUP_DATECHANGED