CLASSCATEGORY
Contains assignment categories for a particular class.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(60) |
|
Default = '' |
Name of the category |
| DEFAULTNAME |
nvarchar(60) |
|
Default = '' |
Default name given to assignments of this category |
| ISGRADED |
bit |
|
Default = 0 |
Indicates whether this category is graded |
| MAXPOINTS |
decimal(14, 2) |
|
Default = 0 |
Maximum amount of points allowed for assignments of this category |
| AVERAGINGMETHODCODE |
tinyint |
|
Default = 1 |
Indicates the method with which the category grade is calculated |
| AVERAGINGMETHOD |
nvarchar(22) (Computed) |
yes |
CASE [AVERAGINGMETHODCODE] WHEN 1 THEN N'Total points' WHEN 2 THEN N'Assignment percentages' END |
Provides a translation for the 'AVERAGINGMETHODCODE' field. |
| TOTALGRADEPERCENTAGE |
decimal(14, 2) |
|
Default = 0 |
Percentage of total grade this category is worth |
| 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 |
| CLASSID |
uniqueidentifier |
|
CLASS.ID
|
Class that this category is associated with |
| GRADINGSCALEID |
uniqueidentifier |
yes |
GRADINGSCALE.ID
|
Grading scale that this category uses |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_CLASSCATEGORY_DATEADDED |
DATEADDED |
|
|
yes |
| IX_CLASSCATEGORY_DATECHANGED |
DATECHANGED |
|
|
|
| PK_CLASSCATEGORY |
ID |
yes |
yes |
|
| UIX_CLASSCATEGORY_CLASSID_NAME |
CLASSID, NAME |
yes |
|
|
Triggers