SCHEDULEDATEADJUSTMENT

Adjustment for a scheduled day in a school

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DESCRIPTION nvarchar(255) Default = '' The description for the adjustment.
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.
DATE date Date of the schedule day.

Foreign Keys

Foreign Key Field Type Null Notes Description
NEXTTIMETABLEDAYID uniqueidentifier yes TIMETABLEDAY.ID The next timetable day after the day not in session.
ADJUSTEDTIMETABLEDAYID uniqueidentifier yes TIMETABLEDAY.ID The timetable day adjustmentment.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
SCHOOLID uniqueidentifier SCHOOL.ID The term that the date is related to.

Indexes

Index Name Fields Unique Primary Clustered
IX_SCHEDULEDATEADJUSTMENT_DATEADDED DATEADDED yes
IX_SCHEDULEDATEADJUSTMENT_DATECHANGED DATECHANGED
PK_SCHEDULEDATEADJUSTMENT ID yes yes
UIX_SCHEDULEDATEADJUSTMENT_SCHOOLID_DATE SCHOOLID, DATE yes

Triggers

Trigger Name Description
TR_SCHEDULEDATEADJUSTMENT_AUDIT_UPDATE
TR_SCHEDULEDATEADJUSTMENT_AUDIT_DELETE