summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-14 23:12:17 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-14 23:12:17 +0000
commit085671219c2d477006db815efc03038178b989a4 (patch)
tree64039f599d64eff884a27d41f3c90a266d7aae79
parentdb8cc20b73dd6c655697a556b9e8fe5b660f8d1d (diff)
SQLite3 schema for sql logging module.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6343 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--extras/m_sqllog.sqlite3.sql34
1 files changed, 34 insertions, 0 deletions
diff --git a/extras/m_sqllog.sqlite3.sql b/extras/m_sqllog.sqlite3.sql
new file mode 100644
index 000000000..a0772e5e3
--- /dev/null
+++ b/extras/m_sqllog.sqlite3.sql
@@ -0,0 +1,34 @@
+CREATE TABLE ircd_log (
+id integer primary key,
+category_id integer,
+nick integer,
+host integer,
+source integer,
+dtime integer);
+
+
+CREATE TABLE ircd_log_categories (
+ category_id integer primary key,
+ category text NOT NULL
+);
+INSERT INTO "ircd_log_categories" VALUES(1, 'Oper');
+INSERT INTO "ircd_log_categories" VALUES(2, 'Kill');
+INSERT INTO "ircd_log_categories" VALUES(3, 'Server Link');
+INSERT INTO "ircd_log_categories" VALUES(4, 'G/Z/K/E Line');
+INSERT INTO "ircd_log_categories" VALUES(5, 'Connect');
+INSERT INTO "ircd_log_categories" VALUES(6, 'Disconnect');
+INSERT INTO "ircd_log_categories" VALUES(7, 'Flooding');
+INSERT INTO "ircd_log_categories" VALUES(8, 'Load Module');
+
+
+CREATE TABLE ircd_log_actors (
+ id integer primary key,
+ actor text
+);
+
+
+CREATE TABLE ircd_log_hosts (
+ id integer primary key,
+ hostname text
+);
+