Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ISCONSTITUENTAFTERGRADUATE bit   Default = 0 THIS FIELD IS NO LONGER USED
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 RELATEDTOCODE tinyint   Default = 0 The constituency type of the student status.
 RELATEDTO nvarchar(7) (Computed) CASE [RELATEDTOCODE] WHEN 0 THEN N'Student' WHEN 1 THEN N'Alumni' END Provides a translation for the 'RELATEDTOCODE' field.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CONSTITUENCYCODEID uniqueidentifier   CONSTITUENCYCODE.LOCALID Determines what constituency the relation of the student will have.

Index Name Field(s) Unique Primary Clustered
 IX_STUDENTRELATIONCONSTITUENCYSETTINGS_DATEADDED DATEADDED    
 IX_STUDENTRELATIONCONSTITUENCYSETTINGS_DATECHANGED DATECHANGED      
 PK_STUDENTRELATIONCONSTITUENCYSETTINGS ID  
 UIX_STUDENTRELATIONCONSTITUENCYSETTINGS_CONSTITUENCYCODEID_RELATEDTOCODE CONSTITUENCYCODEID, RELATEDTOCODE    

Trigger Name Description
 TR_STUDENTRELATIONCONSTITUENCYSETTINGS_INSERTUPDATE_MARKCONSTITUENTS
 TR_STUDENTRELATIONCONSTITUENCYSETTINGS_AUDIT_UPDATE
 TR_STUDENTRELATIONCONSTITUENCYSETTINGS_AUDIT_DELETE

Referenced by Field
 STUDENTRELATIONCONSTITUENCYTYPES STUDENTRELATIONCONSTITUENCYSETTINGSID

Entity-Relationship diagram of this table