BOD-17 Added return car modal.

This commit is contained in:
Patrick Fic
2020-04-01 17:47:27 -07:00
parent 2a1cb3fb9f
commit ecec2c0368
25 changed files with 672 additions and 48 deletions

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."courtesycars" DROP COLUMN "mileage";
type: run_sql

View File

@@ -0,0 +1,6 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."courtesycars" ADD COLUMN "mileage" numeric NOT NULL
DEFAULT 0;
type: run_sql

View File

@@ -0,0 +1,51 @@
- args:
role: user
table:
name: courtesycars
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
- bodyshopid
- make
- model
- year
- plate
- color
- vin
- fleetnumber
- purchasedate
- servicestartdate
- serviceenddate
- leaseenddate
- status
- nextservicekm
- nextservicedate
- damage
- notes
- fuel
- registrationexpires
- insuranceexpires
- dailycost
localPresets:
- key: ""
value: ""
set: {}
role: user
table:
name: courtesycars
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,52 @@
- args:
role: user
table:
name: courtesycars
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
- bodyshopid
- make
- model
- year
- plate
- color
- vin
- fleetnumber
- purchasedate
- servicestartdate
- serviceenddate
- leaseenddate
- status
- nextservicekm
- nextservicedate
- damage
- notes
- fuel
- registrationexpires
- insuranceexpires
- dailycost
- mileage
localPresets:
- key: ""
value: ""
set: {}
role: user
table:
name: courtesycars
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,49 @@
- 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
- 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: 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,51 @@
- args:
role: user
table:
name: courtesycars
schema: public
type: drop_update_permission
- args:
permission:
columns:
- insuranceexpires
- leaseenddate
- nextservicedate
- purchasedate
- registrationexpires
- serviceenddate
- servicestartdate
- dailycost
- fuel
- nextservicekm
- color
- damage
- fleetnumber
- make
- model
- notes
- plate
- status
- vin
- year
- created_at
- updated_at
- bodyshopid
- id
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
localPresets:
- key: ""
value: ""
set: {}
role: user
table:
name: courtesycars
schema: public
type: create_update_permission

View File

@@ -0,0 +1,52 @@
- args:
role: user
table:
name: courtesycars
schema: public
type: drop_update_permission
- args:
permission:
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
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
localPresets:
- key: ""
value: ""
set: {}
role: user
table:
name: courtesycars
schema: public
type: create_update_permission