mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
cc3539415b
GitOrigin-RevId: cce2612ddfd90d1fd10a0a3561d24c64569a6935
14 lines
379 B
SQL
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); |