SESSION (4.0)

Sessions for an academic year.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ACADEMICYEARID

uniqueidentifier

false

The academic year that this session is for.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

SESSIONNAMECODEID

uniqueidentifier

false

The name of the session.

MARKINGCOLUMNSETID

uniqueidentifier

false

The marking column set to use for the session.

TIMETABLEID

uniqueidentifier

false

The timetable to use for the session.

Fields
Field Field Type Null Notes Description

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.

SUNDAY

bit

false

0

In session on Sunday.

MONDAY

bit

false

0

In session on Monday.

TUESDAY

bit

false

0

In session on Tuesday.

WEDNESDAY

bit

false

0

In session on Wednesday.

THURSDAY

bit

false

0

In session on Thursday.

FRIDAY

bit

false

0

In session on Friday.

SATURDAY

bit

false

0

In session on Saturday.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SESSION_DATEADDED

DATEADDED

False

False

True

IX_SESSION_DATECHANGED

DATECHANGED

False

False

False

PK_SESSION

ID

True

True

False

UIX_SESSION_ACADEMICYEARID_SESSIONNAMECODEID

ACADEMICYEARID

SESSIONNAMECODEID

True

False

False

Triggers
Trigger Name Description

TR_SESSION_AUDIT_UPDATE

TR_SESSION_AUDIT_DELETE

TR_SESSION_UPDATE_DATACHANGED

Referenced by
Referenced by Field

APPUSERSESSION

SESSIONID

GRADINGAPPUSERSESSION

SESSIONID

TERM

SESSIONID