TIMETABLE
Timetable
Primary Key
Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Fields
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) | yes | 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) | yes | CONVERT(bigint, TS) | Numeric representation of the timestamp. |
ISACTIVE | bit | Default = 1 | Indicated whether a timetable is active or inactive |
Foreign Keys
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. |
Indexes
Index Name | Fields | Unique | Primary | Clustered |
---|---|---|---|---|
IX_TIMETABLE_DATEADDED | DATEADDED | yes | ||
IX_TIMETABLE_DATECHANGED | DATECHANGED | |||
PK_TIMETABLE | ID | yes | yes | |
UIX_TIMETABLE_NAME | NAME | yes |
Triggers
Trigger Name | Description |
---|---|
TR_TIMETABLE_AUDIT_UPDATE | |
TR_TIMETABLE_AUDIT_DELETE |
Referenced by
Referenced by | Field |
---|---|
PATTERN | TIMETABLEID |
SESSION | TIMETABLEID |
TIMETABLEDAY | TIMETABLEID |