Files
bodyshop/hasura/migrations/1575502854774_track_all_relationships/up.yaml
2019-12-04 20:08:10 -07:00

81 lines
1.7 KiB
YAML

- args:
name: userByUser
table:
name: associations
schema: public
using:
foreign_key_constraint_on: user
type: create_object_relationship
- args:
name: bodyshopByBodyshop
table:
name: associations
schema: public
using:
foreign_key_constraint_on: bodyshop
type: create_object_relationship
- args:
name: associations
table:
name: bodyshops
schema: public
using:
foreign_key_constraint_on:
column: bodyshop
table:
name: associations
schema: public
type: create_array_relationship
- args:
name: estimates
table:
name: bodyshops
schema: public
using:
foreign_key_constraint_on:
column: shopid
table:
name: estimates
schema: public
type: create_array_relationship
- args:
name: estimate
table:
name: estimatelines
schema: public
using:
foreign_key_constraint_on: estimate_id
type: create_object_relationship
- args:
name: bodyshop
table:
name: estimates
schema: public
using:
foreign_key_constraint_on: shopid
type: create_object_relationship
- args:
name: estimatelines
table:
name: estimates
schema: public
using:
foreign_key_constraint_on:
column: estimate_id
table:
name: estimatelines
schema: public
type: create_array_relationship
- args:
name: associations
table:
name: users
schema: public
using:
foreign_key_constraint_on:
column: user
table:
name: associations
schema: public
type: create_array_relationship