Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' The name of the timetable.
 DESCRIPTION nvarchar(255)   Default = '' The description of the timetable.
 SCHEDULETIMECODE tinyint   Default = 0 Schedule class meetings option.
 SCHEDULETIME nvarchar(8) (Computed) CASE [SCHEDULETIMECODE] WHEN 0 THEN N'PERIODS' WHEN 1 THEN N'ANY_TIME' END Provides a translation for the 'SCHEDULETIMECODE' field.
 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.
 ISACTIVE bit   Default = 1 Indicated whether a timetable is active or inactive

Foreign Key Field Type Null Notes Description
 CYCLEID uniqueidentifier   CYCLE.ID The cycle for which this timetable is defined
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_TIMETABLE_DATEADDED DATEADDED    
 IX_TIMETABLE_DATECHANGED DATECHANGED      
 PK_TIMETABLE ID  
 UIX_TIMETABLE_NAME NAME    

Trigger Name Description
 TR_TIMETABLE_AUDIT_UPDATE
 TR_TIMETABLE_AUDIT_DELETE

Referenced by Field
 PATTERN TIMETABLEID
 SESSION TIMETABLEID
 TIMETABLEDAY TIMETABLEID

Entity-Relationship diagram of this table