Refactored app.js and index.js to follow hasura examples of managing state. Now using hooks for user auth and only user auth.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."masterdata"
|
||||
type: run_sql
|
||||
@@ -0,0 +1,8 @@
|
||||
- args:
|
||||
sql: CREATE TABLE "public"."masterdata"("key" text NOT NULL, "value" jsonb NOT
|
||||
NULL, PRIMARY KEY ("key") , UNIQUE ("key"));
|
||||
type: run_sql
|
||||
- args:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -0,0 +1,6 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
@@ -0,0 +1,14 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_upsert: true
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,19 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,21 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns:
|
||||
- value
|
||||
- key
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,19 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,19 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,13 @@
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,6 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
@@ -0,0 +1,6 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -0,0 +1,13 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- value
|
||||
- key
|
||||
filter: {}
|
||||
limit: null
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -0,0 +1,6 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -0,0 +1,13 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- value
|
||||
- key
|
||||
filter: {}
|
||||
limit: null
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
Reference in New Issue
Block a user