CONSTITUENTORIGINATION (4.0SP14)

Holds addition information pertaining to all constituents

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

INFOSOURCECODEID

uniqueidentifier

true

FK to INFOSOURCECODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

REVENUEID

uniqueidentifier

true

FK to REVENUE

Fields
Field Field Type Null Notes Description

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.

ORIGINCODE

tinyint

false

0

Defines where the address originated.

ORIGIN

nvarchar(9) (Computed)

true

Provides a translation for the 'ORIGINCODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_CONSTITUENTORIGINATION_DATEADDED

DATEADDED

False

False

True

IX_CONSTITUENTORIGINATION_DATECHANGED

DATECHANGED

False

False

False

IX_CONSTITUENTORIGINATION_ID

ID

False

False

False

PK_CONSTITUENTORIGINATION

ID

True

True

False

UIX_CONSTITUENTORIGINATION_REVENUEID

REVENUEID

True

False

False

Triggers
Trigger Name Description

TR_CONSTITUENTORIGINATION_AUDIT_UPDATE

TR_CONSTITUENTORIGINATION_AUDIT_DELETE