2021-03-17 13:56:07 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
|
|
|
|
|
|
|
# Track tables
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: author
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: article
|
|
|
|
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: city
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: orders
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: message
|
|
|
|
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: uuid_test
|
|
|
|
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: user
|
|
|
|
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: account
|
|
|
|
|
|
|
|
|
|
|
|
- type: mssql_track_table
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table:
|
|
|
|
name: table_with_sql_identifier
|
|
|
|
|
|
|
|
#Object relationships
|
|
|
|
- type: mssql_create_object_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: article
|
|
|
|
name: author
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: author_id
|
|
|
|
|
|
|
|
- type: mssql_create_object_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: message
|
|
|
|
name: parent
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: parent_id
|
|
|
|
|
|
|
|
#Array relationships
|
|
|
|
- type: mssql_create_array_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: author
|
|
|
|
name: articles
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on:
|
|
|
|
table: article
|
|
|
|
column: author_id
|
|
|
|
|
|
|
|
- type: mssql_create_array_relationship
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: message
|
|
|
|
name: children
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on:
|
|
|
|
table: message
|
|
|
|
column: parent_id
|
2021-05-24 12:08:52 +03:00
|
|
|
|
|
|
|
- type: mssql_create_select_permission
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: article
|
|
|
|
role: user
|
|
|
|
permission:
|
|
|
|
columns:
|
|
|
|
- author_id
|
|
|
|
- content
|
|
|
|
- id
|
|
|
|
- title
|
|
|
|
filter:
|
|
|
|
is_published:
|
|
|
|
_eq: 1
|
|
|
|
|
|
|
|
- type: mssql_create_select_permission
|
|
|
|
args:
|
|
|
|
source: mssql
|
|
|
|
table: author
|
|
|
|
role: user
|
|
|
|
permission:
|
|
|
|
columns:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
filter: {}
|