CREATE UNIQUE INDEX IF NOT EXISTS grade_graded_by_unit_id_grade_id_idx
    ON assessment.grade (graded_by, unit_id, grade_id);

CREATE UNIQUE INDEX IF NOT EXISTS unit_action_by_entity_domain_unit_id_idx
    ON assessment.unit (action_by, entity_domain, unit_id);
