Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 STARTDATE date   Start date of the term.
 ENDDATE date   End date of the term.
 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.
 WITHDRAWALDATE date   Withdrawal date of the term.

Foreign Key Field Type Null Notes Description
 SESSIONID uniqueidentifier SESSION.ID The session that the term is related to.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 TIMETABLEDAYID uniqueidentifier   TIMETABLEDAY.ID The timetable day the term starts with.
 TERMNAMECODEID uniqueidentifier   TERMNAMECODE.ID Name of the term.

Index Name Field(s) Unique Primary Clustered
 IX_TERM_DATEADDED DATEADDED    
 IX_TERM_DATECHANGED DATECHANGED      
 PK_TERM ID  
 UIX_TERM_TERMNAMECODEID_SESSIONID TERMNAMECODEID, SESSIONID    

Trigger Name Description
 TR_TERM_AUDIT_UPDATE
 TR_TERM_AUDIT_DELETE
 TR_TERM_DELETE

Entity-Relationship diagram of this table