2018-10-04 15:44:15 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
|
|
|
|
|
|
|
#Author table
|
|
|
|
- type: run_sql
|
|
|
|
args:
|
|
|
|
sql: |
|
|
|
|
create table author(
|
2019-01-24 16:26:13 +03:00
|
|
|
id serial primary key,
|
2018-10-04 15:44:15 +03:00
|
|
|
name text unique,
|
|
|
|
remarks text
|
|
|
|
);
|
2019-01-24 16:26:13 +03:00
|
|
|
create table article(
|
|
|
|
id serial primary key,
|
|
|
|
title text,
|
|
|
|
author_id integer references author(id)
|
|
|
|
);
|
2018-10-04 15:44:15 +03:00
|
|
|
CREATE TABLE hge_tests.resident (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
name TEXT NOT NULL,
|
|
|
|
age INTEGER NOT NULL
|
2019-01-24 16:26:13 +03:00
|
|
|
);
|
2018-10-04 15:44:15 +03:00
|
|
|
insert into author (name)
|
|
|
|
values
|
|
|
|
('Author 1'),
|
2019-01-24 16:26:13 +03:00
|
|
|
('Author 2');
|
2018-10-04 15:44:15 +03:00
|
|
|
insert into hge_tests.resident (name,age)
|
|
|
|
values
|
|
|
|
('Resident 1', 23),
|
2019-01-24 16:26:13 +03:00
|
|
|
('Resident 2', 31);
|