2018-09-18 09:21:57 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
|
|
|
|
2018-10-04 15:44:15 +03:00
|
|
|
#Author table
|
2021-01-06 19:06:24 +03:00
|
|
|
|
2018-10-04 15:44:15 +03:00
|
|
|
- type: run_sql
|
|
|
|
args:
|
|
|
|
sql: |
|
|
|
|
create table author(
|
|
|
|
id serial primary key,
|
|
|
|
name text unique
|
|
|
|
);
|
2021-01-06 19:06:24 +03:00
|
|
|
CREATE TABLE resident (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
name TEXT NOT NULL,
|
|
|
|
age INTEGER NOT NULL
|
|
|
|
);
|
|
|
|
CREATE TABLE address (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
door_no TEXT NOT NULL,
|
|
|
|
street TEXT NOT NULL,
|
|
|
|
city TEXT NOT NULL,
|
|
|
|
resident_id INTEGER REFERENCES resident(id)
|
|
|
|
);
|
|
|
|
|
2018-10-04 15:44:15 +03:00
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: public
|
|
|
|
name: author
|
|
|
|
|
2018-09-18 09:21:57 +03:00
|
|
|
#Create resident table
|
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: public
|
|
|
|
name: resident
|
|
|
|
|
|
|
|
#Create address table
|
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: public
|
|
|
|
name: address
|
|
|
|
|