diff --git a/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/down.yaml b/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/down.yaml new file mode 100644 index 000000000..b89c21807 --- /dev/null +++ b/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_date"; + type: run_sql diff --git a/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/up.yaml b/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/up.yaml new file mode 100644 index 000000000..c9f3b6c09 --- /dev/null +++ b/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_date" date NULL; + type: run_sql diff --git a/hasura/migrations/1579303896469_ad1_file_additions/down.yaml b/hasura/migrations/1579303896469_ad1_file_additions/down.yaml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/hasura/migrations/1579303896469_ad1_file_additions/down.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura/migrations/1579303896469_ad1_file_additions/up.yaml b/hasura/migrations/1579303896469_ad1_file_additions/up.yaml new file mode 100644 index 000000000..4d0b300fd --- /dev/null +++ b/hasura/migrations/1579303896469_ad1_file_additions/up.yaml @@ -0,0 +1,21 @@ +- args: + cascade: true + sql: "alter table jobs\r\nadd column clm_ofc_nm text,\r\nadd column clm_addr1 + \ text,\r\nadd column clm_addr2 text,\r\nadd column clm_city text,\r\nadd + column clm_st text,\r\nadd column clm_zip text,\r\nadd column clm_ctry + \ text,\r\nadd column clm_ph1 text,\r\nadd column clm_ph1x text,\r\nadd + column clm_ph2 text,\r\nadd column clm_ph2x text,\r\nadd column clm_fax + \ text,\r\nadd column clm_faxx text,\r\nadd column clm_ct_ln text,\r\nadd + column clm_ct_fn text,\r\nadd column clm_title text,\r\nadd column clm_ct_ph + \ text,\r\nadd column clm_ct_phx text,\r\nadd column clm_ea text,\r\nadd + column payee_nms text,\r\nadd column pay_type text,\r\nadd column pay_date + \ \tdate,\r\nadd column pay_chknm text,\r\nadd column pay_amt numeric,\r\nadd + column agt_co_id text,\r\nadd column agt_co_nm text,\r\nadd column agt_addr1 + \ text,\r\nadd column agt_addr2 text,\r\nadd column agt_city text,\r\nadd + column agt_st text,\r\nadd column agt_zip text,\r\nadd column agt_ctry + \ text,\r\nadd column agt_ph1 text,\r\nadd column agt_ph1x text,\r\nadd + column agt_ph2 text,\r\nadd column agt_ph2x text,\r\nadd column agt_fax + \ text,\r\nadd column agt_faxx text,\r\nadd column agt_ct_ln text,\r\nadd + column agt_ct_fn text,\r\nadd column agt_ct_ph text,\r\nadd column agt_ct_phx + text,\r\nadd column agt_ea text,\r\nadd column agt_lic_no text" + type: run_sql diff --git a/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/down.yaml b/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/down.yaml new file mode 100644 index 000000000..804e3a435 --- /dev/null +++ b/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_type"; + type: run_sql diff --git a/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/up.yaml b/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/up.yaml new file mode 100644 index 000000000..dc4fbe0ee --- /dev/null +++ b/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_type" text NULL; + type: run_sql diff --git a/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/down.yaml b/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/down.yaml new file mode 100644 index 000000000..12e78c877 --- /dev/null +++ b/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_desc"; + type: run_sql diff --git a/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/up.yaml b/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/up.yaml new file mode 100644 index 000000000..0769ec158 --- /dev/null +++ b/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_desc" text NULL; + type: run_sql diff --git a/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/down.yaml b/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/down.yaml new file mode 100644 index 000000000..141efafd6 --- /dev/null +++ b/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "theft_ind"; + type: run_sql diff --git a/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/up.yaml b/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/up.yaml new file mode 100644 index 000000000..98fbac65c --- /dev/null +++ b/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "theft_ind" boolean NULL; + type: run_sql diff --git a/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/down.yaml b/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/down.yaml new file mode 100644 index 000000000..443e66435 --- /dev/null +++ b/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "cat_no"; + type: run_sql diff --git a/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/up.yaml b/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/up.yaml new file mode 100644 index 000000000..aea8924e3 --- /dev/null +++ b/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "cat_no" text NULL; + type: run_sql diff --git a/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/down.yaml b/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/down.yaml new file mode 100644 index 000000000..efb2cb28a --- /dev/null +++ b/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/down.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" DROP COLUMN "tlos_ind"; + type: run_sql diff --git a/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/up.yaml b/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/up.yaml new file mode 100644 index 000000000..c95193e9b --- /dev/null +++ b/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/up.yaml @@ -0,0 +1,3 @@ +- args: + sql: ALTER TABLE "public"."jobs" ADD COLUMN "tlos_ind" boolean NULL; + type: run_sql diff --git a/hasura/migrations/1579304768385_additional_ad1_fields/down.yaml b/hasura/migrations/1579304768385_additional_ad1_fields/down.yaml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/hasura/migrations/1579304768385_additional_ad1_fields/down.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura/migrations/1579304768385_additional_ad1_fields/up.yaml b/hasura/migrations/1579304768385_additional_ad1_fields/up.yaml new file mode 100644 index 000000000..f8cffa79a --- /dev/null +++ b/hasura/migrations/1579304768385_additional_ad1_fields/up.yaml @@ -0,0 +1,21 @@ +- args: + cascade: true + sql: "alter table jobs\r\nadd column cust_pr text,\r\nadd column insd_ln + \ text,\r\nadd column insd_fn text,\r\nadd column insd_title + \ text,\r\nadd column insd_co_nm text,\r\nadd column insd_addr1 + \ text,\r\nadd column insd_addr2 text,\r\nadd column insd_city + \ text,\r\nadd column insd_st text,\r\nadd column insd_zip + \ text,\r\nadd column insd_ctry text,\r\nadd column insd_ph1 + \ text,\r\nadd column insd_ph1x text,\r\nadd column insd_ph2 + \ text,\r\nadd column insd_ph2x text,\r\nadd column insd_fax + \ text,\r\nadd column insd_faxx text,\r\nadd column insd_ea + \ text,\r\nadd column ownr_ln text,\r\nadd column ownr_fn + \ text,\r\nadd column ownr_title text,\r\nadd column ownr_co_nm + \ text,\r\nadd column ownr_addr1 text,\r\nadd column ownr_addr2 + \ text,\r\nadd column ownr_city text,\r\nadd column ownr_st + \ text,\r\nadd column ownr_zip text,\r\nadd column ownr_ctry + \ text,\r\nadd column ownr_ph1 text,\r\nadd column ownr_ph1x + \ text,\r\nadd column ownr_ph2 text,\r\nadd column ownr_ph2x + \ text,\r\nadd column ownr_fax text,\r\nadd column ownr_faxx + \ text,\r\nadd column ownr_ea text" + type: run_sql diff --git a/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/down.yaml new file mode 100644 index 000000000..81bdff74e --- /dev/null +++ b/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/down.yaml @@ -0,0 +1,129 @@ +- 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: + - id + - created_at + - updated_at + - shopid + - est_number + - ro_number + - ownerid + - vehicleid + - labor_rate_id + - labor_rate_desc + - rate_lab + - rate_lad + - rate_lae + - rate_lar + - rate_las + - rate_laf + - rate_lam + - rate_lag + - rate_atp + - rate_lau + - rate_la1 + - rate_la2 + - rate_la3 + - rate_la4 + - rate_mapa + - rate_mash + - rate_mahw + - rate_ma2s + - rate_ma3s + - rate_ma2t + - rate_mabl + - rate_macs + - rate_matd + - federal_tax_rate + - state_tax_rate + - local_tax_rate + - est_co_nm + - est_addr1 + - est_addr2 + - est_city + - est_st + - est_zip + - est_ctry + - est_ph1 + - est_ea + - est_ct_ln + - est_ct_fn + - scheduled_in + - actual_in + - scheduled_completion + - actual_completion + - scheduled_delivery + - actual_delivery + - regie_number + - invoice_date + - claim_total + - deductible + - inproduction + - statusid + - pit_owner_first_name + - pit_owner_last_name + - pit_owner_phone + - pit_owner_email + - pit_vehicle_plate_no + - ins_co_id + - ins_co_nm + - ins_addr1 + - ins_addr2 + - ins_city + - ins_st + - ins_zip + - ins_ctry + - ins_ph1 + - ins_ph1x + - ins_ph2 + - ins_ph2x + - ins_fax + - ins_faxx + - ins_ct_ln + - ins_ct_fn + - ins_title + - ins_ct_ph + - ins_ct_phx + - ins_ea + - ins_memo + - policy_no + - ded_amt + - ded_status + - asgn_no + - asgn_date + - asgn_type + - clm_no + - clm_ofc_id + - date_estimated + - date_open + - date_scheduled + - date_invoiced + - date_closed + - date_exported + - clm_total + - owner_owing + - converted + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: jobs + schema: public + type: create_insert_permission diff --git a/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/up.yaml new file mode 100644 index 000000000..5079ab60d --- /dev/null +++ b/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/up.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/1579305435976_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/down.yaml new file mode 100644 index 000000000..f98c35f13 --- /dev/null +++ b/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/down.yaml @@ -0,0 +1,127 @@ +- 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 + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - 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 + - asgn_no + - asgn_type + - clm_no + - clm_ofc_id + - 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 + - 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 + - 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/1579305435976_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/up.yaml new file mode 100644 index 000000000..681a9f7bc --- /dev/null +++ b/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/up.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/1579305444942_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/down.yaml new file mode 100644 index 000000000..ee5d48718 --- /dev/null +++ b/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/down.yaml @@ -0,0 +1,129 @@ +- args: + role: user + table: + name: jobs + schema: public + type: drop_update_permission +- args: + permission: + columns: + - converted + - ded_status + - inproduction + - asgn_date + - invoice_date + - claim_total + - clm_total + - ded_amt + - deductible + - federal_tax_rate + - local_tax_rate + - owner_owing + - 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 + - asgn_no + - asgn_type + - clm_no + - clm_ofc_id + - 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 + - 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 + - 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/1579305444942_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/up.yaml new file mode 100644 index 000000000..5210f5c10 --- /dev/null +++ b/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/up.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/1579307089408_alter_table_public_jobs_alter_column_theft_ind/down.yaml b/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/down.yaml new file mode 100644 index 000000000..cbfca3bdb --- /dev/null +++ b/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/down.yaml @@ -0,0 +1,6 @@ +- args: + sql: ALTER TABLE "public"."jobs" ALTER COLUMN "theft_ind" TYPE boolean; + type: run_sql +- args: + sql: COMMENT ON COLUMN "public"."jobs"."theft_ind" IS E'null' + type: run_sql diff --git a/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/up.yaml b/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/up.yaml new file mode 100644 index 000000000..9c36b7c86 --- /dev/null +++ b/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/up.yaml @@ -0,0 +1,6 @@ +- args: + sql: ALTER TABLE "public"."jobs" ALTER COLUMN "theft_ind" TYPE text; + type: run_sql +- args: + sql: COMMENT ON COLUMN "public"."jobs"."theft_ind" IS E'' + type: run_sql diff --git a/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/down.yaml b/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/down.yaml new file mode 100644 index 000000000..76af2e02a --- /dev/null +++ b/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/down.yaml @@ -0,0 +1,6 @@ +- args: + sql: ALTER TABLE "public"."jobs" ALTER COLUMN "tlos_ind" TYPE boolean; + type: run_sql +- args: + sql: COMMENT ON COLUMN "public"."jobs"."tlos_ind" IS E'null' + type: run_sql diff --git a/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/up.yaml b/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/up.yaml new file mode 100644 index 000000000..54de58527 --- /dev/null +++ b/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/up.yaml @@ -0,0 +1,6 @@ +- args: + sql: ALTER TABLE "public"."jobs" ALTER COLUMN "tlos_ind" TYPE text; + type: run_sql +- args: + sql: COMMENT ON COLUMN "public"."jobs"."tlos_ind" IS E'' + type: run_sql