graphql-engine/cli/seed/testdata/seeds/articles.sql
Aravind K P cc3539415b cli: fix seeds incorrectly being applied to databases
GitOrigin-RevId: cce2612ddfd90d1fd10a0a3561d24c64569a6935
2021-04-01 10:39:53 +00:00

14 lines
379 B
SQL

CREATE TABLE articles
(
id serial NOT NULL,
title text NOT NULL,
content text NOT NULL,
rating integer NOT NULL,
author_id serial NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO articles (id, title, content, rating, author_id)
VALUES (1, 'test1', 'test1', 1, 4),
(2, 'test2', 'test1', 1, 4),
(3, 'test3', 'test1', 1, 4);