graphql-engine/server/tests-py/queries/graphql_query/basic/setup_mssql.yaml
Antoine Leblanc 60da76ed89 server/mssql: fix foreign keys being wrongfully coalesced
GitOrigin-RevId: 0cfef7176e751d17ea709814ae912574511ca79a
2021-03-31 13:49:31 +00:00

79 lines
1.3 KiB
YAML

type: bulk
args:
#Types table
- type: mssql_track_table
args:
source: mssql
table:
name: test_types
#Author table
- type: mssql_track_table
args:
source: mssql
table:
name: author
#Article table
- type: mssql_track_table
args:
source: mssql
table:
name: article
#User table
- type: mssql_track_table
args:
source: mssql
table:
name: user
#Person table
- type: mssql_track_table
args:
source: mssql
table:
name: person
#Object relationship
- type: mssql_create_object_relationship
args:
source: mssql
table: article
name: author
using:
foreign_key_constraint_on: author_id
#Object relationship
- type: mssql_create_object_relationship
args:
source: mssql
table: article
name: co_author
using:
foreign_key_constraint_on: co_author_id
#Array relationship
- type: mssql_create_array_relationship
args:
source: mssql
table: author
name: articles
using:
foreign_key_constraint_on:
table: article
column: author_id
#Array relationship
- type: mssql_create_array_relationship
args:
source: mssql
table: author
name: co_articles
using:
foreign_key_constraint_on:
table: article
column: co_author_id