Skip to content

Commit

Permalink
chore: clean relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
zzdhybthu committed Aug 17, 2024
1 parent 59832d7 commit 8fd967c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 76 deletions.
76 changes: 0 additions & 76 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3235,60 +3235,6 @@
headers:
- name: x-hasura-action-secret
value_from_env: ACTION_SECRET
- table:
name: mentor_available
schema: public
object_relationships:
- name: mentor
using:
foreign_key_constraint_on: mentor_uuid
insert_permissions:
- role: teacher
permission:
check:
mentor_uuid:
_eq: X-Hasura-User-Id
columns:
- available
- mentor_uuid
select_permissions:
- role: counselor
permission:
columns:
- available
- created_at
- mentor_uuid
- updated_at
filter: {}
- role: student
permission:
columns:
- available
- created_at
- mentor_uuid
- updated_at
filter: {}
- role: teacher
permission:
columns:
- available
- created_at
- mentor_uuid
- updated_at
filter:
mentor_uuid:
_eq: X-Hasura-User-Id
update_permissions:
- role: teacher
permission:
columns:
- available
filter:
mentor_uuid:
_eq: X-Hasura-User-Id
check:
mentor_uuid:
_eq: X-Hasura-User-Id
- table:
name: mentor_info
schema: public
Expand Down Expand Up @@ -3982,14 +3928,6 @@
- table:
name: users
schema: public
object_relationships:
- name: mentor_available
using:
foreign_key_constraint_on:
column: mentor_uuid
table:
name: mentor_available
schema: public
array_relationships:
- name: contest_team_members
using:
Expand All @@ -3998,20 +3936,6 @@
table:
name: contest_team_member
schema: public
- name: mentor_application_as_mentor
using:
foreign_key_constraint_on:
column: mentor_uuid
table:
name: mentor_application
schema: public
- name: mentor_application_as_student
using:
foreign_key_constraint_on:
column: student_uuid
table:
name: mentor_application
schema: public
select_permissions:
- role: anonymous
permission:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- DROP table "public"."mentor_available";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP table "public"."mentor_available";

0 comments on commit 8fd967c

Please sign in to comment.