Skip to content

Commit

Permalink
🗃️ Add active flag for users (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenikAdrien authored Aug 9, 2022
1 parent 20f7244 commit be90aa0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions hasura/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
- categoryId
- id
- name
backend_only: false
select_permissions:
- role: world
permission:
Expand Down Expand Up @@ -207,7 +206,6 @@
- botNotifications
- name
- picture
backend_only: false
select_permissions:
- role: world
permission:
Expand Down Expand Up @@ -246,7 +244,6 @@
userEmail:
_eq: x-hasura-user-email
columns: []
backend_only: false
select_permissions:
- role: world
permission:
Expand Down Expand Up @@ -290,7 +287,6 @@
- userEmail
- agency
- created_at
backend_only: false
select_permissions:
- role: world
permission:
Expand Down Expand Up @@ -346,7 +342,6 @@
- skillId
- skillLevel
- userEmail
backend_only: false
select_permissions:
- role: world
permission:
Expand Down Expand Up @@ -408,7 +403,6 @@
- userEmail
- topicId
- created_at
backend_only: false
select_permissions:
- role: world
permission:
Expand All @@ -434,6 +428,7 @@
delete_permissions:
- role: world
permission:
backend_only: false
filter:
userEmail:
_eq: x-hasura-user-email
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."User" add column "active" boolean
-- not null default 'true';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table "public"."User" add column "active" boolean
not null default 'true';

0 comments on commit be90aa0

Please sign in to comment.