SCHOOLGRADELEVEL

Stores the grade levels associated with a given school.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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 The school for which this grade level is allowed.
GRADELEVELID uniqueidentifier GRADELEVEL.ID The grade level which to associate with the school.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SCHOOLGRADELEVEL_DATEADDED DATEADDED yes
IX_SCHOOLGRADELEVEL_DATECHANGED DATECHANGED
PK_SCHOOLGRADELEVEL ID yes yes
UIX_SCHOOLGRADELEVEL_SCHOOLID_GRADELEVELID SCHOOLID, GRADELEVELID yes

Triggers

Trigger Name Description
TR_SCHOOLGRADELEVEL_AUDIT_UPDATE
TR_SCHOOLGRADELEVEL_AUDIT_DELETE

Referenced by

Referenced by Field
CORECURRICULUM SCHOOLGRADELEVELID
COURSEGRADELEVEL SCHOOLGRADELEVELID
PROMOTIONSCHEDULE NEXTSCHOOLGRADELEVELID
PROMOTIONSCHEDULEENTRY SCHOOLGRADELEVELID
PROMOTIONSCHEDULEENTRY NEXTSCHOOLGRADELEVELID
STUDENTPROGRESSION SCHOOLGRADELEVELID