]> ruin.nu Git - ndwebbie.git/blob - database/quotes.sql
9fd1de914a7d3df3881a175371c25e4d26a86e35
[ndwebbie.git] / database / quotes.sql
1 CREATE TABLE IF NOT EXISTS quotes (
2         qid serial PRIMARY KEY,
3         time timestamptz NOT NULL DEFAULT now(),
4         uid integer NOT NULL REFERENCES users(uid),
5         quote text NOT NULL
6 );
7
8 CREATE TABLE IF NOT EXISTS removed_quotes (
9         qid serial PRIMARY KEY,
10         time timestamptz NOT NULL DEFAULT now(),
11         uid integer NOT NULL REFERENCES users(uid),
12         removed_by integer NOT NULL REFERENCES users(uid),
13         quote text NOT NULL
14 );