diff --git a/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/down.yaml b/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/down.yaml new file mode 100644 index 000000000..f8b17dcda --- /dev/null +++ b/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "area_of_damage"; + type: run_sql diff --git a/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/up.yaml b/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/up.yaml new file mode 100644 index 000000000..a984d592c --- /dev/null +++ b/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "area_of_damage" jsonb NULL; + type: run_sql diff --git a/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..8dbb075ef --- /dev/null +++ b/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,27 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_insert_permission +- args: + permission: + check: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: [] + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..b021494c7 --- /dev/null +++ b/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,39 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_insert_permission +- args: + permission: + check: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: + - created_at + - id + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..439576cd8 --- /dev/null +++ b/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,38 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - created_at + - id + - plate_no + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + computed_fields: [] + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + role: user + table: + name: vehicles + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..674231b4e --- /dev/null +++ b/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,37 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - created_at + - id + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + computed_fields: [] + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + role: user + table: + name: vehicles + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..434996a4f --- /dev/null +++ b/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,39 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_update_permission +- args: + permission: + columns: + - created_at + - plate_no + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..3d9a1f59e --- /dev/null +++ b/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,40 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_update_permission +- args: + permission: + columns: + - created_at + - id + - plate_no + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..3d9a1f59e --- /dev/null +++ b/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,40 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_update_permission +- args: + permission: + columns: + - created_at + - id + - plate_no + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..6e094e12c --- /dev/null +++ b/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,39 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_update_permission +- args: + permission: + columns: + - created_at + - id + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/down.yaml b/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/down.yaml new file mode 100644 index 000000000..0086c1ea2 --- /dev/null +++ b/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/down.yaml @@ -0,0 +1,6 @@ +- args: + sql: ALTER TABLE "public"."vehicles" ADD COLUMN "plate_no" text + type: run_sql +- args: + sql: ALTER TABLE "public"."vehicles" ALTER COLUMN "plate_no" DROP NOT NULL + type: run_sql diff --git a/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/up.yaml b/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/up.yaml new file mode 100644 index 000000000..280cb35d5 --- /dev/null +++ b/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."vehicles" DROP COLUMN "plate_no" CASCADE + type: run_sql diff --git a/hasura/migrations/1579316700913_new_vehicle_fields/down.yaml b/hasura/migrations/1579316700913_new_vehicle_fields/down.yaml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/hasura/migrations/1579316700913_new_vehicle_fields/down.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura/migrations/1579316700913_new_vehicle_fields/up.yaml b/hasura/migrations/1579316700913_new_vehicle_fields/up.yaml new file mode 100644 index 000000000..f73a7ce25 --- /dev/null +++ b/hasura/migrations/1579316700913_new_vehicle_fields/up.yaml @@ -0,0 +1,10 @@ +- args: + cascade: true + sql: "alter table vehicles\r\n add column DB_V_CODE text,\r\n add + column PLATE_NO text,\r\n add column PLATE_ST text,\r\n + \ add column V_COND text,\r\n add column V_PROD_DT text,\r\n + \ add column V_TYPE text,\r\n add column V_TRIMCODE text,\r\n + \ add column TRIM_COLOR text,\r\n add column V_MLDGCODE text,\r\n + \ add column V_OPTIONS text,\r\n add column V_TONE text,\r\n + \ add column V_STAGE text" + type: run_sql diff --git a/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/down.yaml b/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/down.yaml new file mode 100644 index 000000000..7272ccaf3 --- /dev/null +++ b/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."vehicles" DROP COLUMN "v_makecode"; + type: run_sql diff --git a/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/up.yaml b/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/up.yaml new file mode 100644 index 000000000..e38f992a9 --- /dev/null +++ b/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."vehicles" ADD COLUMN "v_makecode" text NULL; + type: run_sql diff --git a/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..b021494c7 --- /dev/null +++ b/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,39 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_insert_permission +- args: + permission: + check: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: + - created_at + - id + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..dba16313e --- /dev/null +++ b/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,52 @@ +- args: + role: user + table: + name: vehicles + 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 + - v_vin + - v_make_desc + - v_model_desc + - v_model_yr + - v_color + - v_paint_codes + - v_bstyle + - v_engine + - shopid + - db_v_code + - plate_no + - plate_st + - v_cond + - v_prod_dt + - v_type + - v_trimcode + - trim_color + - v_mldgcode + - v_options + - v_tone + - v_stage + - v_makecode + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..674231b4e --- /dev/null +++ b/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,37 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - created_at + - id + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + computed_fields: [] + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + role: user + table: + name: vehicles + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..bec9ebae2 --- /dev/null +++ b/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,50 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - v_paint_codes + - db_v_code + - plate_no + - plate_st + - trim_color + - v_bstyle + - v_color + - v_cond + - v_engine + - v_makecode + - v_make_desc + - v_mldgcode + - v_model_desc + - v_model_yr + - v_options + - v_prod_dt + - v_stage + - v_tone + - v_trimcode + - v_type + - v_vin + - 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: vehicles + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/down.yaml new file mode 100644 index 000000000..6e094e12c --- /dev/null +++ b/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/down.yaml @@ -0,0 +1,39 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_update_permission +- args: + permission: + columns: + - created_at + - id + - shopid + - updated_at + - v_bstyle + - v_color + - v_engine + - v_make_desc + - v_model_desc + - v_model_yr + - v_paint_codes + - v_vin + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/up.yaml new file mode 100644 index 000000000..556692f5d --- /dev/null +++ b/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/up.yaml @@ -0,0 +1,52 @@ +- args: + role: user + table: + name: vehicles + schema: public + type: drop_update_permission +- args: + permission: + columns: + - v_paint_codes + - db_v_code + - plate_no + - plate_st + - trim_color + - v_bstyle + - v_color + - v_cond + - v_engine + - v_makecode + - v_make_desc + - v_mldgcode + - v_model_desc + - v_model_yr + - v_options + - v_prod_dt + - v_stage + - v_tone + - v_trimcode + - v_type + - v_vin + - created_at + - updated_at + - id + - shopid + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: vehicles + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/down.yaml new file mode 100644 index 000000000..5079ab60d --- /dev/null +++ b/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/down.yaml @@ -0,0 +1,215 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_insert_permission +- args: + permission: + check: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: + - converted + - ded_status + - inproduction + - theft_ind + - tlos_ind + - asgn_date + - invoice_date + - loss_date + - pay_date + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - pay_amt + - rate_atp + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_lab + - rate_lad + - rate_lae + - rate_laf + - rate_lag + - rate_lam + - rate_lar + - rate_las + - rate_lau + - rate_ma2s + - rate_ma2t + - rate_ma3s + - rate_mabl + - rate_macs + - rate_mahw + - rate_mapa + - rate_mash + - rate_matd + - state_tax_rate + - agt_addr1 + - agt_addr2 + - agt_city + - agt_co_id + - agt_co_nm + - agt_ct_fn + - agt_ct_ln + - agt_ct_ph + - agt_ct_phx + - agt_ctry + - agt_ea + - agt_fax + - agt_faxx + - agt_lic_no + - agt_ph1 + - agt_ph1x + - agt_ph2 + - agt_ph2x + - agt_st + - agt_zip + - asgn_no + - asgn_type + - cat_no + - ciecaid + - clm_addr1 + - clm_addr2 + - clm_city + - clm_ct_fn + - clm_ct_ln + - clm_ct_ph + - clm_ct_phx + - clm_ctry + - clm_ea + - clm_fax + - clm_faxx + - clm_no + - clm_ofc_id + - clm_ofc_nm + - clm_ph1 + - clm_ph1x + - clm_ph2 + - clm_ph2x + - clm_st + - clm_title + - clm_zip + - cust_pr + - est_addr1 + - est_addr2 + - est_city + - est_co_nm + - est_ct_fn + - est_ct_ln + - est_ctry + - est_ea + - est_number + - est_ph1 + - est_st + - est_zip + - ins_addr1 + - ins_addr2 + - ins_city + - ins_co_id + - ins_co_nm + - ins_ct_fn + - ins_ct_ln + - ins_ct_ph + - ins_ct_phx + - ins_ctry + - insd_addr1 + - insd_addr2 + - insd_city + - insd_co_nm + - insd_ctry + - insd_ea + - insd_fax + - insd_faxx + - insd_fn + - insd_ln + - insd_ph1 + - insd_ph1x + - insd_ph2 + - insd_ph2x + - insd_st + - insd_title + - insd_zip + - ins_ea + - ins_fax + - ins_faxx + - ins_memo + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_st + - ins_title + - ins_zip + - labor_rate_desc + - labor_rate_id + - loss_desc + - loss_type + - ownr_addr1 + - ownr_addr2 + - ownr_city + - ownr_co_nm + - ownr_ctry + - ownr_ea + - ownr_fax + - ownr_faxx + - ownr_fn + - ownr_ln + - ownr_ph1 + - ownr_ph1x + - ownr_ph2 + - ownr_ph2x + - ownr_st + - ownr_title + - ownr_zip + - pay_chknm + - payee_nms + - pay_type + - pit_owner_email + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_vehicle_plate_no + - policy_no + - regie_number + - ro_number + - actual_completion + - actual_delivery + - actual_in + - created_at + - date_closed + - date_estimated + - date_exported + - date_invoiced + - date_open + - date_scheduled + - scheduled_completion + - scheduled_delivery + - scheduled_in + - updated_at + - id + - ownerid + - shopid + - statusid + - vehicleid + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: jobs + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/up.yaml new file mode 100644 index 000000000..6d6b43661 --- /dev/null +++ b/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/up.yaml @@ -0,0 +1,216 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_insert_permission +- args: + permission: + check: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: + - actual_completion + - actual_delivery + - actual_in + - agt_addr1 + - agt_addr2 + - agt_city + - agt_co_id + - agt_co_nm + - agt_ct_fn + - agt_ct_ln + - agt_ct_ph + - agt_ct_phx + - agt_ctry + - agt_ea + - agt_fax + - agt_faxx + - agt_lic_no + - agt_ph1 + - agt_ph1x + - agt_ph2 + - agt_ph2x + - agt_st + - agt_zip + - area_of_damage + - asgn_date + - asgn_no + - asgn_type + - cat_no + - ciecaid + - claim_total + - clm_addr1 + - clm_addr2 + - clm_city + - clm_ct_fn + - clm_ct_ln + - clm_ct_ph + - clm_ct_phx + - clm_ctry + - clm_ea + - clm_fax + - clm_faxx + - clm_no + - clm_ofc_id + - clm_ofc_nm + - clm_ph1 + - clm_ph1x + - clm_ph2 + - clm_ph2x + - clm_st + - clm_title + - clm_total + - clm_zip + - converted + - created_at + - cust_pr + - date_closed + - date_estimated + - date_exported + - date_invoiced + - date_open + - date_scheduled + - ded_amt + - ded_status + - deductible + - est_addr1 + - est_addr2 + - est_city + - est_co_nm + - est_ct_fn + - est_ct_ln + - est_ctry + - est_ea + - est_number + - est_ph1 + - est_st + - est_zip + - federal_tax_rate + - id + - inproduction + - ins_addr1 + - ins_addr2 + - ins_city + - ins_co_id + - ins_co_nm + - ins_ct_fn + - ins_ct_ln + - ins_ct_ph + - ins_ct_phx + - ins_ctry + - ins_ea + - ins_fax + - ins_faxx + - ins_memo + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_st + - ins_title + - ins_zip + - insd_addr1 + - insd_addr2 + - insd_city + - insd_co_nm + - insd_ctry + - insd_ea + - insd_fax + - insd_faxx + - insd_fn + - insd_ln + - insd_ph1 + - insd_ph1x + - insd_ph2 + - insd_ph2x + - insd_st + - insd_title + - insd_zip + - invoice_date + - labor_rate_desc + - labor_rate_id + - local_tax_rate + - loss_date + - loss_desc + - loss_type + - owner_owing + - ownerid + - ownr_addr1 + - ownr_addr2 + - ownr_city + - ownr_co_nm + - ownr_ctry + - ownr_ea + - ownr_fax + - ownr_faxx + - ownr_fn + - ownr_ln + - ownr_ph1 + - ownr_ph1x + - ownr_ph2 + - ownr_ph2x + - ownr_st + - ownr_title + - ownr_zip + - pay_amt + - pay_chknm + - pay_date + - pay_type + - payee_nms + - pit_owner_email + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_vehicle_plate_no + - policy_no + - rate_atp + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_lab + - rate_lad + - rate_lae + - rate_laf + - rate_lag + - rate_lam + - rate_lar + - rate_las + - rate_lau + - rate_ma2s + - rate_ma2t + - rate_ma3s + - rate_mabl + - rate_macs + - rate_mahw + - rate_mapa + - rate_mash + - rate_matd + - regie_number + - ro_number + - scheduled_completion + - scheduled_delivery + - scheduled_in + - shopid + - state_tax_rate + - statusid + - theft_ind + - tlos_ind + - updated_at + - vehicleid + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: jobs + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/down.yaml new file mode 100644 index 000000000..681a9f7bc --- /dev/null +++ b/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/down.yaml @@ -0,0 +1,213 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - converted + - ded_status + - inproduction + - theft_ind + - tlos_ind + - asgn_date + - invoice_date + - loss_date + - pay_date + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - pay_amt + - rate_atp + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_lab + - rate_lad + - rate_lae + - rate_laf + - rate_lag + - rate_lam + - rate_lar + - rate_las + - rate_lau + - rate_ma2s + - rate_ma2t + - rate_ma3s + - rate_mabl + - rate_macs + - rate_mahw + - rate_mapa + - rate_mash + - rate_matd + - state_tax_rate + - agt_addr1 + - agt_addr2 + - agt_city + - agt_co_id + - agt_co_nm + - agt_ct_fn + - agt_ct_ln + - agt_ct_ph + - agt_ct_phx + - agt_ctry + - agt_ea + - agt_fax + - agt_faxx + - agt_lic_no + - agt_ph1 + - agt_ph1x + - agt_ph2 + - agt_ph2x + - agt_st + - agt_zip + - asgn_no + - asgn_type + - cat_no + - ciecaid + - clm_addr1 + - clm_addr2 + - clm_city + - clm_ct_fn + - clm_ct_ln + - clm_ct_ph + - clm_ct_phx + - clm_ctry + - clm_ea + - clm_fax + - clm_faxx + - clm_no + - clm_ofc_id + - clm_ofc_nm + - clm_ph1 + - clm_ph1x + - clm_ph2 + - clm_ph2x + - clm_st + - clm_title + - clm_zip + - cust_pr + - est_addr1 + - est_addr2 + - est_city + - est_co_nm + - est_ct_fn + - est_ct_ln + - est_ctry + - est_ea + - est_number + - est_ph1 + - est_st + - est_zip + - ins_addr1 + - ins_addr2 + - ins_city + - ins_co_id + - ins_co_nm + - ins_ct_fn + - ins_ct_ln + - ins_ct_ph + - ins_ct_phx + - ins_ctry + - insd_addr1 + - insd_addr2 + - insd_city + - insd_co_nm + - insd_ctry + - insd_ea + - insd_fax + - insd_faxx + - insd_fn + - insd_ln + - insd_ph1 + - insd_ph1x + - insd_ph2 + - insd_ph2x + - insd_st + - insd_title + - insd_zip + - ins_ea + - ins_fax + - ins_faxx + - ins_memo + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_st + - ins_title + - ins_zip + - labor_rate_desc + - labor_rate_id + - loss_desc + - loss_type + - ownr_addr1 + - ownr_addr2 + - ownr_city + - ownr_co_nm + - ownr_ctry + - ownr_ea + - ownr_fax + - ownr_faxx + - ownr_fn + - ownr_ln + - ownr_ph1 + - ownr_ph1x + - ownr_ph2 + - ownr_ph2x + - ownr_st + - ownr_title + - ownr_zip + - pay_chknm + - payee_nms + - pay_type + - pit_owner_email + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_vehicle_plate_no + - policy_no + - regie_number + - ro_number + - actual_completion + - actual_delivery + - actual_in + - created_at + - date_closed + - date_estimated + - date_exported + - date_invoiced + - date_open + - date_scheduled + - scheduled_completion + - scheduled_delivery + - scheduled_in + - updated_at + - id + - ownerid + - shopid + - statusid + - vehicleid + computed_fields: [] + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + role: user + table: + name: jobs + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/up.yaml new file mode 100644 index 000000000..006d38513 --- /dev/null +++ b/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/up.yaml @@ -0,0 +1,214 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - converted + - ded_status + - inproduction + - asgn_date + - invoice_date + - loss_date + - pay_date + - area_of_damage + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - pay_amt + - rate_atp + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_lab + - rate_lad + - rate_lae + - rate_laf + - rate_lag + - rate_lam + - rate_lar + - rate_las + - rate_lau + - rate_ma2s + - rate_ma2t + - rate_ma3s + - rate_mabl + - rate_macs + - rate_mahw + - rate_mapa + - rate_mash + - rate_matd + - state_tax_rate + - agt_addr1 + - agt_addr2 + - agt_city + - agt_co_id + - agt_co_nm + - agt_ct_fn + - agt_ct_ln + - agt_ct_ph + - agt_ct_phx + - agt_ctry + - agt_ea + - agt_fax + - agt_faxx + - agt_lic_no + - agt_ph1 + - agt_ph1x + - agt_ph2 + - agt_ph2x + - agt_st + - agt_zip + - asgn_no + - asgn_type + - cat_no + - ciecaid + - clm_addr1 + - clm_addr2 + - clm_city + - clm_ct_fn + - clm_ct_ln + - clm_ct_ph + - clm_ct_phx + - clm_ctry + - clm_ea + - clm_fax + - clm_faxx + - clm_no + - clm_ofc_id + - clm_ofc_nm + - clm_ph1 + - clm_ph1x + - clm_ph2 + - clm_ph2x + - clm_st + - clm_title + - clm_zip + - cust_pr + - est_addr1 + - est_addr2 + - est_city + - est_co_nm + - est_ct_fn + - est_ct_ln + - est_ctry + - est_ea + - est_number + - est_ph1 + - est_st + - est_zip + - ins_addr1 + - ins_addr2 + - ins_city + - ins_co_id + - ins_co_nm + - ins_ct_fn + - ins_ct_ln + - ins_ct_ph + - ins_ct_phx + - ins_ctry + - insd_addr1 + - insd_addr2 + - insd_city + - insd_co_nm + - insd_ctry + - insd_ea + - insd_fax + - insd_faxx + - insd_fn + - insd_ln + - insd_ph1 + - insd_ph1x + - insd_ph2 + - insd_ph2x + - insd_st + - insd_title + - insd_zip + - ins_ea + - ins_fax + - ins_faxx + - ins_memo + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_st + - ins_title + - ins_zip + - labor_rate_desc + - labor_rate_id + - loss_desc + - loss_type + - ownr_addr1 + - ownr_addr2 + - ownr_city + - ownr_co_nm + - ownr_ctry + - ownr_ea + - ownr_fax + - ownr_faxx + - ownr_fn + - ownr_ln + - ownr_ph1 + - ownr_ph1x + - ownr_ph2 + - ownr_ph2x + - ownr_st + - ownr_title + - ownr_zip + - pay_chknm + - payee_nms + - pay_type + - pit_owner_email + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_vehicle_plate_no + - policy_no + - regie_number + - ro_number + - theft_ind + - tlos_ind + - actual_completion + - actual_delivery + - actual_in + - created_at + - date_closed + - date_estimated + - date_exported + - date_invoiced + - date_open + - date_scheduled + - scheduled_completion + - scheduled_delivery + - scheduled_in + - updated_at + - id + - ownerid + - shopid + - statusid + - vehicleid + computed_fields: [] + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + role: user + table: + name: jobs + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/down.yaml new file mode 100644 index 000000000..5210f5c10 --- /dev/null +++ b/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/down.yaml @@ -0,0 +1,215 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_update_permission +- args: + permission: + columns: + - converted + - ded_status + - inproduction + - theft_ind + - tlos_ind + - asgn_date + - invoice_date + - loss_date + - pay_date + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - pay_amt + - rate_atp + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_lab + - rate_lad + - rate_lae + - rate_laf + - rate_lag + - rate_lam + - rate_lar + - rate_las + - rate_lau + - rate_ma2s + - rate_ma2t + - rate_ma3s + - rate_mabl + - rate_macs + - rate_mahw + - rate_mapa + - rate_mash + - rate_matd + - state_tax_rate + - agt_addr1 + - agt_addr2 + - agt_city + - agt_co_id + - agt_co_nm + - agt_ct_fn + - agt_ct_ln + - agt_ct_ph + - agt_ct_phx + - agt_ctry + - agt_ea + - agt_fax + - agt_faxx + - agt_lic_no + - agt_ph1 + - agt_ph1x + - agt_ph2 + - agt_ph2x + - agt_st + - agt_zip + - asgn_no + - asgn_type + - cat_no + - ciecaid + - clm_addr1 + - clm_addr2 + - clm_city + - clm_ct_fn + - clm_ct_ln + - clm_ct_ph + - clm_ct_phx + - clm_ctry + - clm_ea + - clm_fax + - clm_faxx + - clm_no + - clm_ofc_id + - clm_ofc_nm + - clm_ph1 + - clm_ph1x + - clm_ph2 + - clm_ph2x + - clm_st + - clm_title + - clm_zip + - cust_pr + - est_addr1 + - est_addr2 + - est_city + - est_co_nm + - est_ct_fn + - est_ct_ln + - est_ctry + - est_ea + - est_number + - est_ph1 + - est_st + - est_zip + - ins_addr1 + - ins_addr2 + - ins_city + - ins_co_id + - ins_co_nm + - ins_ct_fn + - ins_ct_ln + - ins_ct_ph + - ins_ct_phx + - ins_ctry + - insd_addr1 + - insd_addr2 + - insd_city + - insd_co_nm + - insd_ctry + - insd_ea + - insd_fax + - insd_faxx + - insd_fn + - insd_ln + - insd_ph1 + - insd_ph1x + - insd_ph2 + - insd_ph2x + - insd_st + - insd_title + - insd_zip + - ins_ea + - ins_fax + - ins_faxx + - ins_memo + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_st + - ins_title + - ins_zip + - labor_rate_desc + - labor_rate_id + - loss_desc + - loss_type + - ownr_addr1 + - ownr_addr2 + - ownr_city + - ownr_co_nm + - ownr_ctry + - ownr_ea + - ownr_fax + - ownr_faxx + - ownr_fn + - ownr_ln + - ownr_ph1 + - ownr_ph1x + - ownr_ph2 + - ownr_ph2x + - ownr_st + - ownr_title + - ownr_zip + - pay_chknm + - payee_nms + - pay_type + - pit_owner_email + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_vehicle_plate_no + - policy_no + - regie_number + - ro_number + - actual_completion + - actual_delivery + - actual_in + - created_at + - date_closed + - date_estimated + - date_exported + - date_invoiced + - date_open + - date_scheduled + - scheduled_completion + - scheduled_delivery + - scheduled_in + - updated_at + - id + - ownerid + - shopid + - statusid + - vehicleid + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: jobs + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/up.yaml new file mode 100644 index 000000000..7404e528a --- /dev/null +++ b/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/up.yaml @@ -0,0 +1,216 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_update_permission +- args: + permission: + columns: + - converted + - ded_status + - inproduction + - asgn_date + - invoice_date + - loss_date + - pay_date + - area_of_damage + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - pay_amt + - rate_atp + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_lab + - rate_lad + - rate_lae + - rate_laf + - rate_lag + - rate_lam + - rate_lar + - rate_las + - rate_lau + - rate_ma2s + - rate_ma2t + - rate_ma3s + - rate_mabl + - rate_macs + - rate_mahw + - rate_mapa + - rate_mash + - rate_matd + - state_tax_rate + - agt_addr1 + - agt_addr2 + - agt_city + - agt_co_id + - agt_co_nm + - agt_ct_fn + - agt_ct_ln + - agt_ct_ph + - agt_ct_phx + - agt_ctry + - agt_ea + - agt_fax + - agt_faxx + - agt_lic_no + - agt_ph1 + - agt_ph1x + - agt_ph2 + - agt_ph2x + - agt_st + - agt_zip + - asgn_no + - asgn_type + - cat_no + - ciecaid + - clm_addr1 + - clm_addr2 + - clm_city + - clm_ct_fn + - clm_ct_ln + - clm_ct_ph + - clm_ct_phx + - clm_ctry + - clm_ea + - clm_fax + - clm_faxx + - clm_no + - clm_ofc_id + - clm_ofc_nm + - clm_ph1 + - clm_ph1x + - clm_ph2 + - clm_ph2x + - clm_st + - clm_title + - clm_zip + - cust_pr + - est_addr1 + - est_addr2 + - est_city + - est_co_nm + - est_ct_fn + - est_ct_ln + - est_ctry + - est_ea + - est_number + - est_ph1 + - est_st + - est_zip + - ins_addr1 + - ins_addr2 + - ins_city + - ins_co_id + - ins_co_nm + - ins_ct_fn + - ins_ct_ln + - ins_ct_ph + - ins_ct_phx + - ins_ctry + - insd_addr1 + - insd_addr2 + - insd_city + - insd_co_nm + - insd_ctry + - insd_ea + - insd_fax + - insd_faxx + - insd_fn + - insd_ln + - insd_ph1 + - insd_ph1x + - insd_ph2 + - insd_ph2x + - insd_st + - insd_title + - insd_zip + - ins_ea + - ins_fax + - ins_faxx + - ins_memo + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_st + - ins_title + - ins_zip + - labor_rate_desc + - labor_rate_id + - loss_desc + - loss_type + - ownr_addr1 + - ownr_addr2 + - ownr_city + - ownr_co_nm + - ownr_ctry + - ownr_ea + - ownr_fax + - ownr_faxx + - ownr_fn + - ownr_ln + - ownr_ph1 + - ownr_ph1x + - ownr_ph2 + - ownr_ph2x + - ownr_st + - ownr_title + - ownr_zip + - pay_chknm + - payee_nms + - pay_type + - pit_owner_email + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_vehicle_plate_no + - policy_no + - regie_number + - ro_number + - theft_ind + - tlos_ind + - actual_completion + - actual_delivery + - actual_in + - created_at + - date_closed + - date_estimated + - date_exported + - date_invoiced + - date_open + - date_scheduled + - scheduled_completion + - scheduled_delivery + - scheduled_in + - updated_at + - id + - ownerid + - shopid + - statusid + - vehicleid + filter: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: jobs + schema: public + type: create_update_permission