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

@@ -0,0 +1,12 @@
- args:
relationship: employee
table:
name: jobs
schema: public
type: drop_relationship
- args:
relationship: jobsByEmployeeCsr
table:
name: employees
schema: public
type: drop_relationship

View File

@@ -0,0 +1,20 @@
- args:
name: employee
table:
name: jobs
schema: public
using:
foreign_key_constraint_on: employee_csr
type: create_object_relationship
- args:
name: jobsByEmployeeCsr
table:
name: employees
schema: public
using:
foreign_key_constraint_on:
column: employee_csr
table:
name: jobs
schema: public
type: create_array_relationship