graphql-engine/server/test/testcases/create_tables.yaml
2018-07-20 13:49:06 +05:30

21 lines
508 B
YAML

description: Runs a bulk SQL query to create tables
url: /v1/query
status: 200
query:
type: bulk
args:
- type: run_sql
args:
sql: "CREATE TABLE author (id SERIAL PRIMARY KEY, name TEXT)"
- type: run_sql
args:
sql: |
CREATE TABLE article (
id SERIAL PRIMARY KEY,
title TEXT,
content TEXT,
author_id INTEGER REFERENCES author(id),
is_published BOOLEAN,
published_on TIMESTAMP
)