]> ruin.nu Git - ndwebbie.git/commitdiff
Quotes in database
authorMichael Andreen <harv@ruin.nu>
Fri, 16 Aug 2019 17:25:09 +0000 (19:25 +0200)
committerMichael Andreen <harv@ruin.nu>
Fri, 16 Aug 2019 17:25:09 +0000 (19:25 +0200)
database/quotes.sql [new file with mode: 0644]

diff --git a/database/quotes.sql b/database/quotes.sql
new file mode 100644 (file)
index 0000000..9fd1de9
--- /dev/null
@@ -0,0 +1,14 @@
+CREATE TABLE IF NOT EXISTS quotes (
+       qid serial PRIMARY KEY,
+       time timestamptz NOT NULL DEFAULT now(),
+       uid integer NOT NULL REFERENCES users(uid),
+       quote text NOT NULL
+);
+
+CREATE TABLE IF NOT EXISTS removed_quotes (
+       qid serial PRIMARY KEY,
+       time timestamptz NOT NULL DEFAULT now(),
+       uid integer NOT NULL REFERENCES users(uid),
+       removed_by integer NOT NULL REFERENCES users(uid),
+       quote text NOT NULL
+);