diff --git a/metadata/tables.yaml b/metadata/tables.yaml index e50030e..61b0b74 100644 --- a/metadata/tables.yaml +++ b/metadata/tables.yaml @@ -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 @@ -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: @@ -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: diff --git a/migrations/1723886043689_drop_table_public_mentor_available/down.sql b/migrations/1723886043689_drop_table_public_mentor_available/down.sql new file mode 100644 index 0000000..27d7179 --- /dev/null +++ b/migrations/1723886043689_drop_table_public_mentor_available/down.sql @@ -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"; diff --git a/migrations/1723886043689_drop_table_public_mentor_available/up.sql b/migrations/1723886043689_drop_table_public_mentor_available/up.sql new file mode 100644 index 0000000..f4d09b6 --- /dev/null +++ b/migrations/1723886043689_drop_table_public_mentor_available/up.sql @@ -0,0 +1 @@ +DROP table "public"."mentor_available";