SCHEDULEDATEADJUSTMENT (4.0SP20)

Adjustment for a scheduled day in a school

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

NEXTTIMETABLEDAYID

uniqueidentifier

true

The next timetable day after the day not in session.

ADJUSTEDTIMETABLEDAYID

uniqueidentifier

true

The timetable day adjustmentment.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

SCHOOLID

uniqueidentifier

false

The term that the date is related to.

Fields
Field Field Type Null Notes Description

DESCRIPTION

nvarchar(255)

false

''

The description for the adjusment.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

DATE

date

false

Date of the schedule day.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SCHEDULEDATEADJUSTMENT_DATEADDED

DATEADDED

False

False

True

IX_SCHEDULEDATEADJUSTMENT_DATECHANGED

DATECHANGED

False

False

False

PK_SCHEDULEDATEADJUSTMENT

ID

True

True

False

UIX_SCHEDULEDATEADJUSTMENT_SCHOOLID_DATE

SCHOOLID

DATE

True

False

False

Triggers
Trigger Name Description

TR_SCHEDULEDATEADJUSTMENT_AUDIT_UPDATE

TR_SCHEDULEDATEADJUSTMENT_AUDIT_DELETE