Grade Categories Table Schema (grade_categories)


This table keeps information about categories, used for grouping items.

grade_categories table columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigint 10 null
grade_categories.parent gradcate_par2_fk R
grade_categories_history.oldid gradcatehist_old2_fk R
grade_categories_history.parent gradcatehist_par2_fk R
grade_items.categoryid graditem_cat2_fk R
grade_items_history.categoryid graditemhist_cat2_fk R
courseid bigint 10 null gradcate_cou2_fk R

The course this grade category is part of

parent bigint 10 null gradcate_par2_fk R

Categories can be hierarchical

depth bigint 10 0

How many parents does this category have?

path varchar 255 null

shows the path as /1/2/3 (like course_categories)

fullname varchar 255

The name of this grade category

aggregation bigint 10 0

A constant pointing to one of the predefined aggregation strategies (none, mean,median,sum, etc)

keephigh bigint 10 0

Keep only the X highest items

droplow bigint 10 0

Drop the X lowest items

aggregateonlygraded BIT 1 0

aggregate only graded activities

aggregateoutcomes BIT 1 0

Aggregate outcomes

timecreated bigint 10 null
timemodified bigint 10 null
hidden BIT 1 0

Table contained -1 rows

grade_categories table indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
gradcate_cou_ix Performance Asc courseid
gradcate_par_ix Performance Asc parent

grade_categories table relationships