aboutsummaryrefslogtreecommitdiff
path: root/db/db.sql
blob: 4df334502cb62498e4ed5495d1a5b601cbad06a8 (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
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',
    '**bold**'
);