diff options
author | Michael McVady <femtonaut@gmail.com> | 2021-09-23 00:22:10 -0500 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2021-09-23 00:22:10 -0500 |
commit | 40441e01b6e73a0a1d7f06377b3607f151aed65b (patch) | |
tree | f78149c19b55af7dcaec3d8de165c4c8b9186fab /db/db.sql | |
parent | 3595c5264297f14010eb8dc6f0a7fd31dc186e8b (diff) |
Add pgsql sandbox
Diffstat (limited to 'db/db.sql')
-rw-r--r-- | db/db.sql | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/db/db.sql b/db/db.sql new file mode 100644 index 0000000..3f27856 --- /dev/null +++ b/db/db.sql @@ -0,0 +1,35 @@ +CREATE DATABASE clog; + +\connect clog + +CREATE TABLE entries ( + id BIGINT NOT NULL, -- PRIMARY KEY UUID + title CHARACTER VARYING NOT NULL, + body CHARACTER VARYING NOT NULL + -- created_at TIMESTAMP NOT NULL, + -- updated_at TIMESTAMP NOT NULL +); + + +INSERT INTO entries ( + id, + title, + body +) +VALUES +( + 1, + 'foo', + 'bar' +), +( + 2, + 'baz', + 'zoo' +), +( + 3, + 'xxx', + 'yyy' +); + |