Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DATE date   Date of the schedule day.
 INSESSION bit   Default = 1 Indicated whether a date is in session
 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.
 DAYCOUNT int   Default = 0 Value of day in session for a given session

Foreign Key Field Type Null Notes Description
 SCHOOLID uniqueidentifier   SCHOOL.ID The term that the date is related to.
 TIMETABLEDAYID uniqueidentifier TIMETABLEDAY.ID The timetable day assigned to the date.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_SCHEDULEDATE_DATEADDED DATEADDED    
 IX_SCHEDULEDATE_DATECHANGED DATECHANGED      
 PK_SCHEDULEDATE ID  
 UIX_SCHEDULEDATE_SCHOOLID_DATE SCHOOLID, DATE    

Trigger Name Description
 TR_SCHEDULEDATE_AUDIT_UPDATE
 TR_SCHEDULEDATE_AUDIT_DELETE

Entity-Relationship diagram of this table