aboutsummaryrefslogtreecommitdiffstats
path: root/config/create-tables.sql
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2014-11-21 11:02:46 -0500
committerBrian Cully <bjc@kublai.com>2014-11-23 14:19:29 -0500
commitcacbab512d4102e6db19c6487c4d291006dd0fda (patch)
treebc0e623db6b94384c9305529311148712786426c /config/create-tables.sql
downloadspamcat-cacbab512d4102e6db19c6487c4d291006dd0fda.tar.gz
spamcat-cacbab512d4102e6db19c6487c4d291006dd0fda.zip
Initial commit.
Diffstat (limited to 'config/create-tables.sql')
-rw-r--r--config/create-tables.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/create-tables.sql b/config/create-tables.sql
new file mode 100644
index 0000000..9f6d93a
--- /dev/null
+++ b/config/create-tables.sql
@@ -0,0 +1,7 @@
+DROP TABLE IF EXISTS emails;
+CREATE TABLE emails (
+ sender TEXT NOT NULL PRIMARY KEY,
+ count INTEGER DEFAULT 20,
+ created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
+ modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP
+);