aboutsummaryrefslogtreecommitdiff
path: root/db/db.sql
blob: 3f278565b3b313c1986b3e954b2c488c007b28c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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'
);