Primary Key Field Type
 ID uniqueidentifier

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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 SUNDAY bit   Default = 0 In session on Sunday.
 MONDAY bit   Default = 0 In session on Monday.
 TUESDAY bit   Default = 0 In session on Tuesday.
 WEDNESDAY bit   Default = 0 In session on Wednesday.
 THURSDAY bit   Default = 0 In session on Thursday.
 FRIDAY bit   Default = 0 In session on Friday.
 SATURDAY bit   Default = 0 In session on Saturday.

Foreign Key Field Type Null Notes Description
 ACADEMICYEARID uniqueidentifier   ACADEMICYEAR.ID The academic year that this session is for.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 SESSIONNAMECODEID uniqueidentifier   SESSIONNAMECODE.ID The name of the session.
 MARKINGCOLUMNSETID uniqueidentifier   MARKINGCOLUMNSET.ID The marking column set to use for the session.
 TIMETABLEID uniqueidentifier   TIMETABLE.ID The timetable to use for the session.

Index Name Field(s) Unique Primary Clustered
 IX_SESSION_DATEADDED DATEADDED    
 IX_SESSION_DATECHANGED DATECHANGED      
 PK_SESSION ID  
 UIX_SESSION_ACADEMICYEARID_SESSIONNAMECODEID ACADEMICYEARID, SESSIONNAMECODEID    

Trigger Name Description
 TR_SESSION_AUDIT_UPDATE
 TR_SESSION_AUDIT_DELETE
 TR_SESSION_UPDATE_DATACHANGED

Referenced by Field
 APPUSERSESSION SESSIONID
 GRADINGAPPUSERSESSION SESSIONID
 TERM SESSIONID

Entity-Relationship diagram of this table