Added login functionality for tech BOD-95
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: ALTER TABLE "public"."employees" DROP COLUMN "pin";
|
||||
type: run_sql
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: ALTER TABLE "public"."employees" ADD COLUMN "pin" text NULL;
|
||||
type: run_sql
|
||||
@@ -0,0 +1,37 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
columns:
|
||||
- id
|
||||
- created_at
|
||||
- updated_at
|
||||
- first_name
|
||||
- last_name
|
||||
- employee_number
|
||||
- shopid
|
||||
- active
|
||||
- hire_date
|
||||
- termination_date
|
||||
- base_rate
|
||||
- cost_center
|
||||
- flat_rate
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,38 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
columns:
|
||||
- active
|
||||
- base_rate
|
||||
- cost_center
|
||||
- created_at
|
||||
- employee_number
|
||||
- first_name
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- id
|
||||
- last_name
|
||||
- pin
|
||||
- shopid
|
||||
- termination_date
|
||||
- updated_at
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -0,0 +1,37 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- active
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- termination_date
|
||||
- base_rate
|
||||
- cost_center
|
||||
- employee_number
|
||||
- first_name
|
||||
- last_name
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -0,0 +1,38 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- active
|
||||
- base_rate
|
||||
- cost_center
|
||||
- created_at
|
||||
- employee_number
|
||||
- first_name
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- id
|
||||
- last_name
|
||||
- pin
|
||||
- shopid
|
||||
- termination_date
|
||||
- updated_at
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -0,0 +1,38 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- active
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- termination_date
|
||||
- base_rate
|
||||
- cost_center
|
||||
- employee_number
|
||||
- first_name
|
||||
- last_name
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
computed_fields: []
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -0,0 +1,39 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- active
|
||||
- base_rate
|
||||
- cost_center
|
||||
- created_at
|
||||
- employee_number
|
||||
- first_name
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- id
|
||||
- last_name
|
||||
- pin
|
||||
- shopid
|
||||
- termination_date
|
||||
- updated_at
|
||||
computed_fields: []
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
role: user
|
||||
table:
|
||||
name: employees
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1201,36 +1201,38 @@ tables:
|
||||
- active:
|
||||
_eq: true
|
||||
columns:
|
||||
- id
|
||||
- created_at
|
||||
- updated_at
|
||||
- first_name
|
||||
- last_name
|
||||
- employee_number
|
||||
- shopid
|
||||
- active
|
||||
- hire_date
|
||||
- termination_date
|
||||
- base_rate
|
||||
- cost_center
|
||||
- created_at
|
||||
- employee_number
|
||||
- first_name
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- id
|
||||
- last_name
|
||||
- pin
|
||||
- shopid
|
||||
- termination_date
|
||||
- updated_at
|
||||
select_permissions:
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- active
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- termination_date
|
||||
- base_rate
|
||||
- cost_center
|
||||
- created_at
|
||||
- employee_number
|
||||
- first_name
|
||||
- last_name
|
||||
- created_at
|
||||
- updated_at
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- id
|
||||
- last_name
|
||||
- pin
|
||||
- shopid
|
||||
- termination_date
|
||||
- updated_at
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
@@ -1245,18 +1247,19 @@ tables:
|
||||
permission:
|
||||
columns:
|
||||
- active
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- termination_date
|
||||
- base_rate
|
||||
- cost_center
|
||||
- created_at
|
||||
- employee_number
|
||||
- first_name
|
||||
- last_name
|
||||
- created_at
|
||||
- updated_at
|
||||
- flat_rate
|
||||
- hire_date
|
||||
- id
|
||||
- last_name
|
||||
- pin
|
||||
- shopid
|
||||
- termination_date
|
||||
- updated_at
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
|
||||
Reference in New Issue
Block a user