CONSTITUENCY
Stores the constituent code information for constituents.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| DATEFROM |
date |
yes |
|
Lower end of date range for which this constituency code is applicable. |
| DATETO |
date |
yes |
|
Upper end of date range for which this constituency code is applicable. |
| 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 |
| CONSTITUENTID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
The constituent for which the constituency is valid. |
| CONSTITUENCYCODEID |
uniqueidentifier |
|
CONSTITUENCYCODE.LOCALID
|
The associated user defined constituency. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_CONSTITUENCY_CONSTITUENTID |
CONSTITUENTID |
|
|
|
| IX_CONSTITUENCY_DATEADDED |
DATEADDED |
|
|
yes |
| IX_CONSTITUENCY_DATECHANGED |
DATECHANGED |
|
|
|
| PK_CONSTITUENCY |
ID |
yes |
yes |
|
Triggers
Referenced by