STUDENTRELATIONCONSTITUENCYTYPES

Contains the relationship types that are considered to be constituents when related to a student

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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
STUDENTRELATIONCONSTITUENCYSETTINGSID uniqueidentifier STUDENTRELATIONCONSTITUENCYSETTINGS.ID FK to STUDENTRELATIONCONSTITUENCYSETTINGS
RELATIONSHIPTYPECODEID uniqueidentifier RELATIONSHIPTYPECODE.ID FK to RELATIONSHIPTYPECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_STUDENTRELATIONCONSTITUENCYTYPES_DATEADDED DATEADDED yes
IX_STUDENTRELATIONCONSTITUENCYTYPES_DATECHANGED DATECHANGED
PK_STUDENTRELATIONCONSTITUENCYTYPES ID yes yes
UIX_STUDENTRELATIONCONSTITUENCYTYPES_STUDENTRELATIONCONSTITUENCYSETTINGSID_RELATIONSHIPTYPECODEID STUDENTRELATIONCONSTITUENCYSETTINGSID, RELATIONSHIPTYPECODEID yes

Triggers

Trigger Name Description
TR_STUDENTRELATIONCONSTITUENCYTYPES_INSERTUPDATE_MARKCONSTITUENTS
TR_STUDENTRELATIONCONSTITUENCYTYPES_AUDIT_UPDATE
TR_STUDENTRELATIONCONSTITUENCYTYPES_AUDIT_DELETE