issue: order by last update, changed on reply
[minimedit.git] / widget / comments.sql
1 CREATE TABLE issues (
2         page       text        NOT NULL DEFAULT 'issue',
3         link       text,
4         subject    text,
5         body       text,
6         created    timestamptz          DEFAULT now(),
7         closed     timestamptz          DEFAULT now(),
8         updated    timestamptz NOT NULL DEFAULT now(),
9         author     text,
10         id         serial      NOT NULL PRIMARY KEY
11 );
12
13 CREATE TABLE comments (
14         page       text,
15         message    text,
16         created    timestamptz DEFAULT now(),
17         author     text,
18         id         serial      NOT NULL PRIMARY KEY
19 );