Primary Key Field Type
 ID uniqueidentifier

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) 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 CLASSID uniqueidentifier   CLASS.ID Class that this category is associated with
 GRADINGSCALEID uniqueidentifier GRADINGSCALE.ID Grading scale that this category uses
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_CLASSCATEGORY_DATEADDED DATEADDED    
 IX_CLASSCATEGORY_DATECHANGED DATECHANGED      
 PK_CLASSCATEGORY ID  
 UIX_CLASSCATEGORY_CLASSID_NAME CLASSID, NAME    

Trigger Name Description
 TR_CLASSCATEGORY_IUD
 TR_CLASSCATEGORY_AUDIT_UPDATE
 TR_CLASSCATEGORY_AUDIT_DELETE

Entity-Relationship diagram of this table