ES Schema changes & initial upload attempt.

This commit is contained in:
Patrick Fic
2025-07-09 16:01:38 -07:00
parent 661c562a48
commit a1dfcf4457
40 changed files with 289 additions and 77 deletions

View File

@@ -16,72 +16,82 @@ insert_permissions:
authid:
_eq: X-Hasura-User-Id
columns:
- act_price
- alerts
- created_at
- db_hrs
- db_price
- db_ref
- cert_part
- glass_flag
- id
- ignore
- jobid
- lbr_amt
- lbr_hrs_j
- lbr_inc
- lbr_op
- line_desc
- line_ind
- lbr_op_j
- price_inc
- price_j
- tax_part
- alerts
- act_price
- db_hrs
- db_price
- lbr_amt
- line_no
- line_ref
- misc_amt
- mod_lb_hrs
- mod_lbr_ty
- oem_partno
- part_qty
- part_type
- price_diff
- price_diff_pc
- price_j
- prt_dsmk_m
- prt_dsmk_p
- alt_partno
- db_ref
- lbr_op
- line_desc
- line_ind
- mod_lbr_ty
- oem_partno
- part_type
- unq_seq
- created_at
- updated_at
- id
- jobid
select_permissions:
- role: user
permission:
columns:
- act_price
- alerts
- created_at
- db_hrs
- db_price
- db_ref
- cert_part
- glass_flag
- id
- ignore
- jobid
- lbr_amt
- lbr_hrs_j
- lbr_inc
- lbr_op
- line_desc
- line_ind
- lbr_op_j
- price_inc
- price_j
- tax_part
- alerts
- act_price
- db_hrs
- db_price
- lbr_amt
- line_no
- line_ref
- misc_amt
- mod_lb_hrs
- mod_lbr_ty
- oem_partno
- part_qty
- part_type
- price_diff
- price_diff_pc
- price_j
- prt_dsmk_m
- prt_dsmk_p
- alt_partno
- db_ref
- lbr_op
- line_desc
- line_ind
- mod_lbr_ty
- oem_partno
- part_type
- unq_seq
- created_at
- updated_at
- id
- jobid
filter:
job:
bodyshop:
@@ -93,37 +103,42 @@ update_permissions:
- role: user
permission:
columns:
- act_price
- alerts
- created_at
- db_hrs
- db_price
- db_ref
- cert_part
- glass_flag
- id
- ignore
- jobid
- lbr_amt
- lbr_hrs_j
- lbr_inc
- lbr_op
- line_desc
- line_ind
- lbr_op_j
- price_inc
- price_j
- tax_part
- alerts
- act_price
- db_hrs
- db_price
- lbr_amt
- line_no
- line_ref
- misc_amt
- mod_lb_hrs
- mod_lbr_ty
- oem_partno
- part_qty
- part_type
- price_diff
- price_diff_pc
- price_j
- prt_dsmk_m
- prt_dsmk_p
- alt_partno
- db_ref
- lbr_op
- line_desc
- line_ind
- mod_lbr_ty
- oem_partno
- part_type
- unq_seq
- created_at
- updated_at
- id
- jobid
filter:
job:
bodyshop:

View File

@@ -28,21 +28,31 @@ insert_permissions:
- clm_total
- close_date
- created_at
- ded_amt
- g_bett_amt
- supp_amt
- group
- group_verified
- id
- ins_co_nm
- loss_date
- loss_desc
- ownr_addr1
- ownr_city
- ownr_fn
- ownr_ln
- ownr_ph1
- rates
- requires_reimport
- ro_number
- totals
- updated_at
- v_age
- v_makedesc
- v_mileage
- v_model
- v_model_yr
- v_stage
- v_type
- v_vin
select_permissions:
@@ -54,21 +64,31 @@ select_permissions:
- clm_total
- close_date
- created_at
- ded_amt
- g_bett_amt
- supp_amt
- group
- group_verified
- id
- ins_co_nm
- loss_date
- loss_desc
- ownr_addr1
- ownr_city
- ownr_fn
- ownr_ln
- ownr_ph1
- rates
- requires_reimport
- ro_number
- totals
- updated_at
- v_age
- v_makedesc
- v_mileage
- v_model
- v_model_yr
- v_stage
- v_type
- v_vin
filter:
@@ -87,21 +107,31 @@ update_permissions:
- clm_total
- close_date
- created_at
- ded_amt
- g_bett_amt
- supp_amt
- group
- group_verified
- id
- ins_co_nm
- loss_date
- loss_desc
- ownr_addr1
- ownr_city
- ownr_fn
- ownr_ln
- ownr_ph1
- rates
- requires_reimport
- ro_number
- totals
- updated_at
- v_age
- v_makedesc
- v_mileage
- v_model
- v_model_yr
- v_stage
- v_type
- v_vin
filter:

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "ded_amt" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "ded_amt" numeric
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "loss_desc" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "loss_desc" text
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "ownr_addr1" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "ownr_addr1" text
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "ownr_city" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "ownr_city" text
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "ownr_ph1" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "ownr_ph1" text
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "v_stage" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "v_stage" numeric
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."joblines" add column "price_inc" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "price_inc" boolean
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."joblines" add column "tax_part" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "tax_part" boolean
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."joblines" add column "cert_part" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "cert_part" boolean
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."joblines" add column "alt_partno" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "alt_partno" text
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."joblines" add column "lbr_op_j" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "lbr_op_j" boolean
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "rates" jsonb
-- null default jsonb_build_array();

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "rates" jsonb
null default jsonb_build_array();

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "totals" jsonb
-- null default jsonb_build_array();

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "totals" jsonb
null default jsonb_build_array();

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "g_supp_amt" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "g_supp_amt" numeric
null;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "g_bett_amt" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "g_bett_amt" numeric
null;

View File

@@ -0,0 +1 @@
alter table "public"."jobs" rename column "supp_amt" to "g_supp_amt";

View File

@@ -0,0 +1 @@
alter table "public"."jobs" rename column "g_supp_amt" to "supp_amt";