| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CONSTITUENCYID |
uniqueidentifier | ID of the mapped constituency from the ConstituencyCode or ConstituencySystemName tables | ||
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 |
|---|---|---|---|---|
VSECONSTITUENCYID |
uniqueidentifier | VSECONSTITUENCY.ID | ID of the VSE Constituency | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_VSECONSTITUENCYMAP_CONSTITUENCYID |
CONSTITUENCYID | |||
IX_VSECONSTITUENCYMAP_DATEADDED |
DATEADDED | ![]() |
||
IX_VSECONSTITUENCYMAP_DATECHANGED |
DATECHANGED | |||
PK_VSECONSTITUENCYMAP |
ID | ![]() |
![]() |
|
UIX_VSECONSTITUENCYMAP_VSECONSTITUENCYID_CONSTITUENCYID |
VSECONSTITUENCYID, CONSTITUENCYID | ![]() |
| Trigger Name | Description |
|---|---|
TR_VSECONSTITUENCYMAP_AUDIT_UPDATE |
|
TR_VSECONSTITUENCYMAP_AUDIT_DELETE |

ID
CONSTITUENCYID
TSLONG
VSECONSTITUENCYID
IX_VSECONSTITUENCYMAP_CONSTITUENCYID
IX_VSECONSTITUENCYMAP_DATEADDED