STUDENTSKILLCOURSEMARKINGCOLUMN

Link between a student skill on a course and marking column in which it is used.

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
STUDENTSKILLCOURSEID uniqueidentifier STUDENTSKILLCOURSE.ID Student skill course being linked.
MARKINGCOLUMNDESCRIPTIONCODEID uniqueidentifier MARKINGCOLUMNDESCRIPTIONCODE.ID Marking column description being linked.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_STUDENTSKILLCOURSEMARKINGCOLUMN_DATEADDED DATEADDED yes
IX_STUDENTSKILLCOURSEMARKINGCOLUMN_DATECHANGED DATECHANGED
PK_STUDENTSKILLCOURSEMARKINGCOLUMN ID yes yes
UIX_STUDENTSKILLCOURSEMARKINGCOLUMN_STUDENTSKILLCOURSEID_MARKINGCOLUMNDESCRIPTIONCODEID STUDENTSKILLCOURSEID, MARKINGCOLUMNDESCRIPTIONCODEID yes

Triggers

Trigger Name Description
TR_STUDENTSKILLCOURSEMARKINGCOLUMN_AUDIT_UPDATE
TR_STUDENTSKILLCOURSEMARKINGCOLUMN_AUDIT_DELETE