Skip to content

Commit be90aa0

Browse files
authored
🗃️ Add active flag for users (#176)
1 parent 20f7244 commit be90aa0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

hasura/metadata/tables.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
- categoryId
115115
- id
116116
- name
117-
backend_only: false
118117
select_permissions:
119118
- role: world
120119
permission:
@@ -207,7 +206,6 @@
207206
- botNotifications
208207
- name
209208
- picture
210-
backend_only: false
211209
select_permissions:
212210
- role: world
213211
permission:
@@ -246,7 +244,6 @@
246244
userEmail:
247245
_eq: x-hasura-user-email
248246
columns: []
249-
backend_only: false
250247
select_permissions:
251248
- role: world
252249
permission:
@@ -290,7 +287,6 @@
290287
- userEmail
291288
- agency
292289
- created_at
293-
backend_only: false
294290
select_permissions:
295291
- role: world
296292
permission:
@@ -346,7 +342,6 @@
346342
- skillId
347343
- skillLevel
348344
- userEmail
349-
backend_only: false
350345
select_permissions:
351346
- role: world
352347
permission:
@@ -408,7 +403,6 @@
408403
- userEmail
409404
- topicId
410405
- created_at
411-
backend_only: false
412406
select_permissions:
413407
- role: world
414408
permission:
@@ -434,6 +428,7 @@
434428
delete_permissions:
435429
- role: world
436430
permission:
431+
backend_only: false
437432
filter:
438433
userEmail:
439434
_eq: x-hasura-user-email
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Could not auto-generate a down migration.
2+
-- Please write an appropriate down migration for the SQL below:
3+
-- alter table "public"."User" add column "active" boolean
4+
-- not null default 'true';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alter table "public"."User" add column "active" boolean
2+
not null default 'true';

0 commit comments

Comments
 (0)