DISCOUNTCONSTITUENCY (4.0SP7)

Discount constituency eligibility.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

DISCOUNTID

uniqueidentifier

false

The ID of the Discount record the Constituency Code is for.

CONSTITUENCYCODEID

uniqueidentifier

true

The ID of the Constituency Code to be discounted.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CONSTITUENCYSYSTEMNAMEID

uniqueidentifier

true

The ID of the Constituency System Name to be discounted.

Fields
Field Field Type Null Notes Description

SEQUENCE

int

false

0

The sequence in which constituency codes are entered.

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_DISCOUNTCONSTITUENCY_DATEADDED

DATEADDED

False

False

True

IX_DISCOUNTCONSTITUENCY_DATECHANGED

DATECHANGED

False

False

False

PK_DISCOUNTCONSTITUENCY

ID

True

True

False

UIX_DISCOUNTCONSTITUENCY_DISCOUNTID_CONSTITUENCYSYSTEMNAMEID_CONSTITUENCYCODEID

DISCOUNTID

CONSTITUENCYSYSTEMNAMEID

CONSTITUENCYCODEID

True

False

False

Triggers
Trigger Name Description

TR_DISCOUNTCONSTITUENCY_AUDIT_UPDATE

TR_DISCOUNTCONSTITUENCY_AUDIT_DELETE