COURSERESTRICTION
This table contains schedule restrictions for a course in a date range.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| COURSEID |
uniqueidentifier |
|
COURSE.ID
|
A foreign key to the course being restricted. |
| PATTERNID |
uniqueidentifier |
yes |
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. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_COURSERESTRICTION_COURSEID |
COURSEID |
|
|
|
| IX_COURSERESTRICTION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_COURSERESTRICTION_DATECHANGED |
DATECHANGED |
|
|
|
| PK_COURSERESTRICTION |
ID |
yes |
yes |
|
| UIX_COURSERESTRICTION_STARTDATE_ENDDATE_COURSEID |
STARTDATE, ENDDATE, COURSEID |
yes |
|
|
Triggers
Referenced by