CUSTOMMODELING

Contains values for an individual associated with a custom modeling field.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
VALUE nvarchar(100) Default = ''
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 yes CONSTITUENT.LOCALID FK to CONSTITUENT
CUSTOMMODELINGFIELDID uniqueidentifier yes CUSTOMMODELINGFIELD.ID FK to CUSTOMMODELINGFIELD
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CUSTOMMODELING_DATEADDED DATEADDED yes
IX_CUSTOMMODELING_DATECHANGED DATECHANGED
PK_CUSTOMMODELING ID yes yes
UIX_CUSTOMMODELING_CONSTITUENTID_CUSTOMMODELINGFIELDID CONSTITUENTID, CUSTOMMODELINGFIELDID yes

Triggers

Trigger Name Description
TR_CUSTOMMODELING_AUDIT_UPDATE
TR_CUSTOMMODELING_AUDIT_DELETE