IO-896 Fleet # Validation

This commit is contained in:
Patrick Fic
2021-04-13 14:12:41 -07:00
parent 94e59e7a65
commit 53ec5200e4
5 changed files with 178 additions and 17 deletions

View File

@@ -0,0 +1,50 @@
- args:
role: user
table:
name: courtesycars
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- insuranceexpires
- leaseenddate
- nextservicedate
- purchasedate
- registrationexpires
- serviceenddate
- servicestartdate
- dailycost
- fuel
- mileage
- nextservicekm
- color
- damage
- fleetnumber
- make
- model
- notes
- plate
- status
- vin
- year
- created_at
- updated_at
- bodyshopid
- id
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
role: user
table:
name: courtesycars
schema: public
type: create_select_permission

View File

@@ -0,0 +1,50 @@
- args:
role: user
table:
name: courtesycars
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: true
columns:
- insuranceexpires
- leaseenddate
- nextservicedate
- purchasedate
- registrationexpires
- serviceenddate
- servicestartdate
- dailycost
- fuel
- mileage
- nextservicekm
- color
- damage
- fleetnumber
- make
- model
- notes
- plate
- status
- vin
- year
- created_at
- updated_at
- bodyshopid
- id
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
role: user
table:
name: courtesycars
schema: public
type: create_select_permission

View File

@@ -1215,6 +1215,7 @@ tables:
_eq: X-Hasura-User-Id
- active:
_eq: true
allow_aggregations: true
update_permissions:
- role: user
permission: