Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 STARTDATE datetime  
 ENDDATE datetime  
 LENGTHINTERMS int   Default = 1
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 COURSEID uniqueidentifier   COURSE.ID A foreign key to the course being restricted.
 PATTERNID uniqueidentifier PATTERN.ID Optional Pattern to restrict class meetings by. If not set, classes are restricted by specific meeting times.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_COURSERESTRICTION_COURSEID COURSEID      
 IX_COURSERESTRICTION_DATEADDED DATEADDED    
 IX_COURSERESTRICTION_DATECHANGED DATECHANGED      
 PK_COURSERESTRICTION ID  
 UIX_COURSERESTRICTION_STARTDATE_ENDDATE_COURSEID STARTDATE, ENDDATE, COURSEID    

Trigger Name Description
 TR_COURSERESTRICTION_AUDIT_UPDATE
 TR_COURSERESTRICTION_AUDIT_DELETE
 TR_COURSERESTRICTION_UPDATE_DELETECOURSEGRADINGMARKINGCOLUMN

Referenced by Field
 COURSERESTRICTIONSTARTTERM COURSERESTRICTIONID

Entity-Relationship diagram of this table