Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request eesast#168 from xiangmy21/dev
Browse files Browse the repository at this point in the history
fix&feat: add anonymous, & email nullable
  • Loading branch information
xiangmy21 authored Apr 8, 2024
2 parents 958a339 + 851adac commit 5ca855c
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
85 changes: 85 additions & 0 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,14 @@
using:
foreign_key_constraint_on: contest_id
select_permissions:
- role: anonymous
permission:
columns:
- contest_id
- player_label
- roles_available
- team_label
filter: {}
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -1016,6 +1024,20 @@
name: contest_room_team
schema: public
select_permissions:
- role: anonymous
permission:
columns:
- status
- result
- created_at
- room_id
- contest_id
- port
- round_id
- map_id
- updated_at
filter: {}
allow_aggregations: true
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -1083,6 +1105,17 @@
using:
foreign_key_constraint_on: team_id
select_permissions:
- role: anonymous
permission:
columns:
- team_id
- room_id
- score
- team_label
- player_roles
- player_codes
filter: {}
allow_aggregations: true
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -1195,6 +1228,14 @@
- name
- round_id
select_permissions:
- role: anonymous
permission:
columns:
- name
- contest_id
- map_id
- round_id
filter: {}
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -1442,6 +1483,25 @@
- team_name
- updated_at
select_permissions:
- role: anonymous
permission:
columns:
- contest_id
- contest_score
- created_at
- invited_code
- member_num
- score
- status
- status2
- submitted_code_num
- team_id
- team_intro
- team_leader_uuid
- team_name
- updated_at
filter: {}
allow_aggregations: true
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -1935,6 +1995,13 @@
- team_id
- user_uuid
select_permissions:
- role: anonymous
permission:
columns:
- team_id
- user_uuid
filter: {}
allow_aggregations: true
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -3601,6 +3668,24 @@
name: mentor_application
schema: public
select_permissions:
- role: anonymous
permission:
columns:
- class
- created_at
- department
- email
- github_id
- id
- phone
- realname
- role
- student_no
- tsinghua_email
- updated_at
- username
- uuid
filter: {}
- role: counselor
permission:
columns:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."users" alter column "email" set not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."users" alter column "email" drop not null;

0 comments on commit 5ca855c

Please sign in to comment.