Added framework for CSI questions & viewing. Schema changes to allow anon viewing of survey BOD-98
This commit is contained in:
@@ -384,6 +384,20 @@ tables:
|
||||
table:
|
||||
schema: public
|
||||
name: courtesycars
|
||||
- name: csiinvites
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: bodyshopid
|
||||
table:
|
||||
schema: public
|
||||
name: csi
|
||||
- name: csiquestions
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: bodyshopid
|
||||
table:
|
||||
schema: public
|
||||
name: csiquestions
|
||||
- name: employees
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
@@ -869,6 +883,175 @@ tables:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
- table:
|
||||
schema: public
|
||||
name: csi
|
||||
object_relationships:
|
||||
- name: bodyshop
|
||||
using:
|
||||
foreign_key_constraint_on: bodyshopid
|
||||
- name: csiquestion
|
||||
using:
|
||||
foreign_key_constraint_on: questionset
|
||||
- name: job
|
||||
using:
|
||||
foreign_key_constraint_on: jobid
|
||||
insert_permissions:
|
||||
- role: user
|
||||
permission:
|
||||
check:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
columns:
|
||||
- bodyshopid
|
||||
- created_at
|
||||
- id
|
||||
- jobid
|
||||
- relateddata
|
||||
- updated_at
|
||||
- valid
|
||||
- validuntil
|
||||
select_permissions:
|
||||
- role: anonymous
|
||||
permission:
|
||||
columns:
|
||||
- id
|
||||
- relateddata
|
||||
- valid
|
||||
- validuntil
|
||||
filter:
|
||||
valid:
|
||||
_eq: true
|
||||
limit: 1
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- bodyshopid
|
||||
- created_at
|
||||
- id
|
||||
- jobid
|
||||
- relateddata
|
||||
- response
|
||||
- updated_at
|
||||
- valid
|
||||
- validuntil
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
update_permissions:
|
||||
- role: anonymous
|
||||
permission:
|
||||
columns:
|
||||
- response
|
||||
filter:
|
||||
valid:
|
||||
_eq: true
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- valid
|
||||
- validuntil
|
||||
- relateddata
|
||||
- created_at
|
||||
- updated_at
|
||||
- bodyshopid
|
||||
- id
|
||||
- jobid
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
- table:
|
||||
schema: public
|
||||
name: csiquestions
|
||||
object_relationships:
|
||||
- name: bodyshop
|
||||
using:
|
||||
foreign_key_constraint_on: bodyshopid
|
||||
array_relationships:
|
||||
- name: csis
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: questionset
|
||||
table:
|
||||
schema: public
|
||||
name: csi
|
||||
insert_permissions:
|
||||
- role: user
|
||||
permission:
|
||||
check:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
columns:
|
||||
- current
|
||||
- config
|
||||
- created_at
|
||||
- updated_at
|
||||
- bodyshopid
|
||||
- id
|
||||
select_permissions:
|
||||
- role: anonymous
|
||||
permission:
|
||||
columns:
|
||||
- config
|
||||
- id
|
||||
filter: {}
|
||||
limit: 1
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- current
|
||||
- config
|
||||
- created_at
|
||||
- updated_at
|
||||
- bodyshopid
|
||||
- id
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
update_permissions:
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- current
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
_and:
|
||||
- user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- active:
|
||||
_eq: true
|
||||
- table:
|
||||
schema: public
|
||||
name: documents
|
||||
@@ -1624,6 +1807,13 @@ tables:
|
||||
table:
|
||||
schema: public
|
||||
name: cccontracts
|
||||
- name: csiinvites
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: jobid
|
||||
table:
|
||||
schema: public
|
||||
name: csi
|
||||
- name: documents
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
|
||||
Reference in New Issue
Block a user