SESSION
Sessions for an academic year.
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. |
| SUNDAY |
bit |
|
Default = 0 |
In session on Sunday. |
| MONDAY |
bit |
|
Default = 0 |
In session on Monday. |
| TUESDAY |
bit |
|
Default = 0 |
In session on Tuesday. |
| WEDNESDAY |
bit |
|
Default = 0 |
In session on Wednesday. |
| THURSDAY |
bit |
|
Default = 0 |
In session on Thursday. |
| FRIDAY |
bit |
|
Default = 0 |
In session on Friday. |
| SATURDAY |
bit |
|
Default = 0 |
In session on Saturday. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ACADEMICYEARID |
uniqueidentifier |
|
ACADEMICYEAR.ID
|
The academic year that this session is for. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| SESSIONNAMECODEID |
uniqueidentifier |
|
SESSIONNAMECODE.ID
|
The name of the session. |
| MARKINGCOLUMNSETID |
uniqueidentifier |
|
MARKINGCOLUMNSET.ID
|
The marking column set to use for the session. |
| TIMETABLEID |
uniqueidentifier |
|
TIMETABLE.ID
|
The timetable to use for the session. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_SESSION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_SESSION_DATECHANGED |
DATECHANGED |
|
|
|
| PK_SESSION |
ID |
yes |
yes |
|
| UIX_SESSION_ACADEMICYEARID_SESSIONNAMECODEID |
ACADEMICYEARID, SESSIONNAMECODEID |
yes |
|
|
Triggers
Referenced by