mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 21:12:09 +03:00
20 lines
422 B
YAML
20 lines
422 B
YAML
|
type: run_sql
|
||
|
args:
|
||
|
sql: |
|
||
|
CREATE TABLE "user"(
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
name TEXT NOT NULL,
|
||
|
email TEXT NOT NULL,
|
||
|
is_admin BOOLEAN NOT NULL DEFAULT false
|
||
|
);
|
||
|
CREATE TABLE "article"(
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
name TEXT NOT NULL,
|
||
|
user_id INTEGER
|
||
|
);
|
||
|
INSERT INTO "article" (name, user_id) VALUES
|
||
|
('foo', 1),
|
||
|
('bar', 1),
|
||
|
('bar', 1),
|
||
|
('baz', 2);
|