ACADEMICYEAR

Academic years for schools.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
STARTDATE date The start date of the academic year.
ENDDATE date The end date of the academic year.
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.
BILLINGSTARTDATE date yes The billing start date of the academic year.
BILLINGENDDATE date yes The billing end date of the academic year.

Foreign Keys

Foreign Key Field Type Null Notes Description
SCHOOLID uniqueidentifier SCHOOL.ID The school for which this academic year is defined
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
ACADEMICYEARNAMECODEID uniqueidentifier ACADEMICYEARNAMECODE.ID The name of the academic year.

Indexes

Index Name Fields Unique Primary Clustered
IX_ACADEMICYEAR_DATEADDED DATEADDED yes
IX_ACADEMICYEAR_DATECHANGED DATECHANGED
PK_ACADEMICYEAR ID yes yes
UIX_ACADEMICYEAR_SCHOOLID_ACADEMICYEARNAMECODEID SCHOOLID, ACADEMICYEARNAMECODEID yes

Triggers

Trigger Name Description
TR_ACADEMICYEAR_AUDIT_UPDATE
TR_ACADEMICYEAR_AUDIT_DELETE

Referenced by

Referenced by Field
SESSION ACADEMICYEARID