IO-995 Update CSR to be a relationship.

This commit is contained in:
Patrick Fic
2021-05-06 15:29:50 -07:00
parent 121e7b3048
commit 9d1164496d
33 changed files with 1808 additions and 48 deletions

View File

@@ -1632,13 +1632,20 @@ tables:
table:
schema: public
name: allocations
- name: jobs
- name: jobsByEmployeeBody
using:
foreign_key_constraint_on:
column: employee_body
table:
schema: public
name: jobs
- name: jobsByEmployeeCsr
using:
foreign_key_constraint_on:
column: employee_csr
table:
schema: public
name: jobs
- name: jobsByEmployeePrep
using:
foreign_key_constraint_on:
@@ -2204,6 +2211,9 @@ tables:
- name: employee_body_rel
using:
foreign_key_constraint_on: employee_body
- name: employee_csr_rel
using:
foreign_key_constraint_on: employee_csr
- name: employee_prep_rel
using:
foreign_key_constraint_on: employee_prep
@@ -2401,7 +2411,6 @@ tables:
- clm_zip
- converted
- created_at
- csr
- cust_pr
- date_estimated
- date_exported
@@ -2414,6 +2423,7 @@ tables:
- depreciation_taxes
- driveable
- employee_body
- employee_csr
- employee_prep
- employee_refinish
- est_addr1
@@ -2648,7 +2658,6 @@ tables:
- clm_zip
- converted
- created_at
- csr
- cust_pr
- date_estimated
- date_exported
@@ -2661,6 +2670,7 @@ tables:
- depreciation_taxes
- driveable
- employee_body
- employee_csr
- employee_prep
- employee_refinish
- est_addr1
@@ -2905,7 +2915,6 @@ tables:
- clm_zip
- converted
- created_at
- csr
- cust_pr
- date_estimated
- date_exported
@@ -2918,6 +2927,7 @@ tables:
- depreciation_taxes
- driveable
- employee_body
- employee_csr
- employee_prep
- employee_refinish
- est_addr1