mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
60da76ed89
GitOrigin-RevId: 0cfef7176e751d17ea709814ae912574511ca79a
79 lines
1.3 KiB
YAML
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
|