PROMOTIONSCHEDULE

This table contains the schedules of grade promotion within and across schools.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(60) Default = '' Name of the promotion schedule.
DESCRIPTION nvarchar(255) Default = '' Description of the promotion schedule.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
SCHOOLID uniqueidentifier SCHOOL.ID A foreign key to the school using the promotion schedule.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
NEXTSCHOOLGRADELEVELID uniqueidentifier yes SCHOOLGRADELEVEL.ID A foreign key to the next step schoolgradelevel.

Indexes

Index Name Fields Unique Primary Clustered
IX_PROMOTIONSCHEDULE_DATEADDED DATEADDED yes
IX_PROMOTIONSCHEDULE_DATECHANGED DATECHANGED
PK_PROMOTIONSCHEDULE ID yes yes
UIX_PROMOTIONSCHEDULE_NAME NAME yes

Triggers

Trigger Name Description
TR_PROMOTIONSCHEDULE_AUDIT_UPDATE
TR_PROMOTIONSCHEDULE_AUDIT_DELETE

Referenced by

Referenced by Field
PROMOTIONSCHEDULEENTRY PROMOTIONSCHEDULEID