]> ruin.nu Git - ndwebbie.git/blob - database/quotes.sql
Quotes in database
[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 );