TERM
Terms for a Session
Primary Key
Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Fields
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
STARTDATE | date | Start date of the term. | ||
ENDDATE | date | End date of the term. | ||
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. |
WITHDRAWALDATE | date | Withdrawal date of the term. |
Foreign Keys
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
SESSIONID | uniqueidentifier | yes | SESSION.ID | The session that the term is related to. |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
TIMETABLEDAYID | uniqueidentifier | TIMETABLEDAY.ID | The timetable day the term starts with. | |
TERMNAMECODEID | uniqueidentifier | TERMNAMECODE.ID | Name of the term. |
Indexes
Index Name | Fields | Unique | Primary | Clustered |
---|---|---|---|---|
IX_TERM_DATEADDED | DATEADDED | yes | ||
IX_TERM_DATECHANGED | DATECHANGED | |||
PK_TERM | ID | yes | yes | |
UIX_TERM_TERMNAMECODEID_SESSIONID | TERMNAMECODEID, SESSIONID | yes |
Triggers
Trigger Name | Description |
---|---|
TR_TERM_AUDIT_UPDATE | |
TR_TERM_AUDIT_DELETE | |
TR_TERM_DELETE |