BATCHCONSTITUENTCONSTITUENCY (4.0SP14)

Stores the constituent batch user-defined constituency information.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHCONSTITUENTID

uniqueidentifier

false

FK to BATCHCONSTITUENT

CONSTITUENCYCODEID

uniqueidentifier

false

FK to CONSTITUENCYCODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DATEFROM

date

true

DATETO

date

true

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.

SEQUENCE

int

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHCONSTITUENTCONSTITUENCY_BATCHCONSTITUENTID

BATCHCONSTITUENTID

False

False

False

IX_BATCHCONSTITUENTCONSTITUENCY_DATEADDED

DATEADDED

False

False

True

IX_BATCHCONSTITUENTCONSTITUENCY_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHCONSTITUENTCONSTITUENCY

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHCONSTITUENTCONSTITUENCY_AUDIT_UPDATE

TR_BATCHCONSTITUENTCONSTITUENCY_AUDIT_DELETE