]> git.donarmstrong.com Git - infobot.git/blobdiff - setup/sqlite2/stats.sql
* Merge changes from prposed changes
[infobot.git] / setup / sqlite2 / stats.sql
diff --git a/setup/sqlite2/stats.sql b/setup/sqlite2/stats.sql
new file mode 100644 (file)
index 0000000..d738dc0
--- /dev/null
@@ -0,0 +1,8 @@
+CREATE TABLE stats (
+ nick VARCHAR(20) NOT NULL,
+ type VARCHAR(8) NOT NULL,
+ channel VARCHAR(30) NOT NULL DEFAULT "PRIVATE",
+ time INT UNSIGNED DEFAULT 'UNIX_TIMESTAMP()',
+ counter SMALLINT UNSIGNED DEFAULT '0',
+ PRIMARY KEY (nick,type,channel)
+);