-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
columns: | ||
columns | ||
assessment_question_id: bigint not null | ||
group_role_id: bigint not null | ||
can_view: boolean | ||
can_submit: boolean | ||
can_view: boolean | ||
group_role_id: bigint not null | ||
|
||
indexes | ||
assessment_question_role_permissions_pkey: PRIMARY KEY (assessment_question_id, group_role_id) USING btree (assessment_question_id, group_role_id) | ||
assessment_question_role_permissions_assessment_question_id_key: USING btree (assessment_question_id) | ||
assessment_question_role_permissions_assessment_question_id_gro: UNIQUE USING btree (assessment_question_id, group_role_id) | ||
assessment_question_role_permissions_group_role_id_key: USING btree (group_role_id) | ||
|
||
foreign-key constraints | ||
assessment_question_role_permissions_assessment_question_id_fkey: FOREIGN KEY (assessment_question_id) REFERENCES assessment_questions(id) ON UPDATE CASCADE ON DELETE CASCADE | ||
assessment_question_role_permissions_assessment_question_id_fke: FOREIGN KEY (assessment_question_id) REFERENCES assessment_questions(id) ON UPDATE CASCADE ON DELETE CASCADE | ||
assessment_question_role_permissions_group_role_id_fkey: FOREIGN KEY (group_role_id) REFERENCES group_roles(id) ON UPDATE CASCADE ON DELETE CASCADE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
columns | ||
id: bigint not null default nextval('group_roles_id_seq'::regclass) | ||
role_name: text not null | ||
assessment_id: bigint not null | ||
minimum: int default 0 | ||
maximum: int default 4 | ||
can_assign_roles_at_start: boolean default false | ||
can_assign_roles_during_assessment: boolean default false | ||
can_submit_assessment: boolean default true | ||
id: bigint not null default nextval('group_roles_id_seq'::regclass) | ||
maximum: integer default 4 | ||
minimum: integer default 0 | ||
role_name: text not null | ||
|
||
indexes | ||
group_roles_pkey: PRIMARY KEY (id) USING btree (id) | ||
group_roles_assessment_id_number_key: UNIQUE (assessment_id, number) USING btree (assessment_id, number) | ||
group_roles_role_name_assessment_id_key: UNIQUE USING btree (role_name, assessment_id) | ||
|
||
foreign-key constraints | ||
group_roles_assessment_id_fkey: FOREIGN KEY (assessment_id) REFERENCES assessments(id) ON UPDATE CASCADE ON DELETE CASCADE | ||
|
||
referenced by | ||
assessment_question_role_permissions: FOREIGN KEY (group_role_id) REFERENCES group_roles(id) ON UPDATE CASCADE ON DELETE CASCADE | ||
group_users: FOREIGN KEY (group_role_id) REFERENCES group_roles(id) ON UPDATE CASCADE ON DELETE CASCADE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
columns | ||
group_id: bigint not null | ||
user_id: bigint not null | ||
group_role_id: bigint | ||
user_id: bigint not null | ||
|
||
indexes | ||
group_users_pkey: PRIMARY KEY (group_id, user_id) USING btree (group_id, user_id) | ||
group_users_group_id_key: USING btree (group_id) | ||
group_users_user_id_key: USING btree (user_id) | ||
group_user_group_role_id_key: USING btree (group_role_id) | ||
|
||
foreign-key constraints | ||
group_users_group_id_fkey: FOREIGN KEY (group_id) REFERENCES groups(id) ON UPDATE CASCADE ON DELETE CASCADE | ||
group_users_group_role_id_fkey: FOREIGN KEY (group_role_id) REFERENCES group_roles(id) ON UPDATE CASCADE ON DELETE CASCADE | ||
group_users_user_id_fkey: FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE | ||
group_users_group_role_id_fkey: FOREIGN KEY (group_role_id) REFERENCES group_roles(group_role_id) ON UPDATE CASCADE ON DELETE CASCADE |