2021-03-11 21:17:41 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
|
|
|
|
2021-03-16 19:41:21 +03:00
|
|
|
#Types table
|
2021-03-11 21:17:41 +03:00
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: test_types
|
|
|
|
|
|
|
|
#Author table
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: author
|
2021-03-16 19:41:21 +03:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2021-05-21 05:46:58 +03:00
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: article_multi
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: author_multi
|
|
|
|
|
2021-03-16 19:41:21 +03:00
|
|
|
#Object relationship
|
|
|
|
- type: mssql_create_object_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: article
|
|
|
|
name: author
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: author_id
|
|
|
|
|
2021-03-31 16:48:36 +03:00
|
|
|
#Object relationship
|
|
|
|
- type: mssql_create_object_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: article
|
|
|
|
name: co_author
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: co_author_id
|
|
|
|
|
2021-03-16 19:41:21 +03:00
|
|
|
#Array relationship
|
|
|
|
- type: mssql_create_array_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: author
|
|
|
|
name: articles
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on:
|
|
|
|
table: article
|
|
|
|
column: author_id
|
2021-03-31 16:48:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
#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
|
2021-05-21 05:46:58 +03:00
|
|
|
|
|
|
|
#Object relationship
|
|
|
|
- type: mssql_create_object_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: article_multi
|
|
|
|
name: author
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: ["author_id1", "author_id2"]
|
|
|
|
|
|
|
|
#Array relationship
|
|
|
|
- type: mssql_create_array_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: author_multi
|
|
|
|
name: articles
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on:
|
|
|
|
table: article_multi
|
|
|
|
columns: ["author_id1", "author_id2"]
|