]>
Commit | Line | Data |
---|---|---|
2ace9480 | 1 | DROP TABLE IF EXISTS chan; |
2 | DROP TABLE IF EXISTS ison; | |
3 | DROP TABLE IF EXISTS server; | |
4 | DROP TABLE IF EXISTS user; | |
5 | DROP TABLE IF EXISTS maxvalues; | |
6 | ||
7 | CREATE TABLE chan ( | |
8 | chanid int unsigned NOT NULL auto_increment, | |
9 | channel varchar(33) binary NOT NULL default '', | |
10 | topic text, | |
11 | topicauthor varchar(31) default NULL, | |
12 | topictime datetime default NULL, | |
13 | mode_lc enum('Y','N') NOT NULL default 'N', | |
14 | mode_lf enum('Y','N') NOT NULL default 'N', | |
15 | mode_li enum('Y','N') NOT NULL default 'N', | |
16 | mode_lk enum('Y','N') NOT NULL default 'N', | |
17 | mode_ll enum('Y','N') NOT NULL default 'N', | |
18 | mode_lm enum('Y','N') NOT NULL default 'N', | |
19 | mode_ln enum('Y','N') NOT NULL default 'N', | |
20 | mode_lp enum('Y','N') NOT NULL default 'N', | |
21 | mode_lr enum('Y','N') NOT NULL default 'N', | |
22 | mode_ls enum('Y','N') NOT NULL default 'N', | |
23 | mode_lt enum('Y','N') NOT NULL default 'N', | |
24 | mode_lu enum('Y','N') NOT NULL default 'N', | |
25 | mode_lz enum('Y','N') NOT NULL default 'N', | |
26 | mode_ua enum('Y','N') NOT NULL default 'N', | |
27 | mode_uc enum('Y','N') NOT NULL default 'N', | |
28 | mode_ug enum('Y','N') NOT NULL default 'N', | |
29 | mode_uh enum('Y','N') NOT NULL default 'N', | |
30 | mode_uk enum('Y','N') NOT NULL default 'N', | |
31 | mode_ul enum('Y','N') NOT NULL default 'N', | |
32 | mode_um enum('Y','N') NOT NULL default 'N', | |
33 | mode_un enum('Y','N') NOT NULL default 'N', | |
34 | mode_uo enum('Y','N') NOT NULL default 'N', | |
35 | mode_uq enum('Y','N') NOT NULL default 'N', | |
36 | mode_ur enum('Y','N') NOT NULL default 'N', | |
37 | mode_us enum('Y','N') NOT NULL default 'N', | |
38 | mode_uv enum('Y','N') NOT NULL default 'N', | |
39 | mode_ll_data int(10) NOT NULL default '0', | |
40 | mode_ul_data varchar(33) NOT NULL default '', | |
41 | mode_lk_data varchar(23) NOT NULL default '', | |
42 | mode_lf_data varchar(20) NOT NULL default '', | |
43 | PRIMARY KEY (chanid), | |
44 | UNIQUE KEY channel (channel) | |
45 | ) TYPE=MyISAM; | |
46 | ||
47 | CREATE TABLE ison ( | |
48 | nickid int unsigned NOT NULL default '0', | |
49 | chanid int unsigned NOT NULL default '0', | |
50 | mode_la enum('Y','N') NOT NULL default 'N', | |
51 | mode_lh enum('Y','N') NOT NULL default 'N', | |
52 | mode_lo enum('Y','N') NOT NULL default 'N', | |
53 | mode_lq enum('Y','N') NOT NULL default 'N', | |
54 | mode_lv enum('Y','N') NOT NULL default 'N', | |
55 | PRIMARY KEY (nickid,chanid) | |
56 | ) TYPE=MyISAM; | |
57 | ||
58 | CREATE TABLE server ( | |
59 | servid int unsigned NOT NULL auto_increment, | |
60 | server varchar(64) NOT NULL default '', | |
61 | comment varchar(255) NOT NULL default '', | |
62 | linkedto tinyint(3) unsigned default NULL, | |
63 | connecttime datetime default NULL, | |
64 | online enum('Y','N') NOT NULL DEFAULT 'Y', | |
65 | lastsplit datetime default NULL, | |
66 | PRIMARY KEY (servid), | |
67 | UNIQUE KEY server (server), | |
68 | KEY linkedto (linkedto) | |
69 | ) TYPE=MyISAM; | |
70 | ||
71 | ||
72 | CREATE TABLE user ( | |
73 | nickid int unsigned NOT NULL auto_increment, | |
74 | nick varchar(31) NOT NULL default '', | |
75 | realname varchar(51) NOT NULL default '', | |
76 | hostname varchar(64) NOT NULL default '', | |
77 | hiddenhostname varchar(64) NOT NULL default '', | |
78 | username varchar(11) NOT NULL default '', | |
79 | connecttime datetime NOT NULL default '0000-00-00 00:00:00', | |
80 | servid int unsigned NOT NULL default '0', | |
81 | away enum('Y','N') NOT NULL default 'N', | |
82 | awaymsg text, | |
83 | online enum('Y','N') NOT NULL DEFAULT 'Y', | |
84 | lastquit datetime default NULL, | |
85 | mode_la enum('Y','N') NOT NULL default 'N', | |
86 | mode_lb enum('Y','N') NOT NULL default 'N', | |
87 | mode_lc enum('Y','N') NOT NULL default 'N', | |
88 | mode_ld enum('Y','N') NOT NULL default 'N', | |
89 | mode_le enum('Y','N') NOT NULL default 'N', | |
90 | mode_lf enum('Y','N') NOT NULL default 'N', | |
91 | mode_lg enum('Y','N') NOT NULL default 'N', | |
92 | mode_lh enum('Y','N') NOT NULL default 'N', | |
93 | mode_li enum('Y','N') NOT NULL default 'N', | |
94 | mode_lj enum('Y','N') NOT NULL default 'N', | |
95 | mode_lk enum('Y','N') NOT NULL default 'N', | |
96 | mode_lo enum('Y','N') NOT NULL default 'N', | |
97 | mode_lq enum('Y','N') NOT NULL default 'N', | |
98 | mode_lr enum('Y','N') NOT NULL default 'N', | |
99 | mode_ls enum('Y','N') NOT NULL default 'N', | |
100 | mode_lt enum('Y','N') NOT NULL default 'N', | |
101 | mode_lu enum('Y','N') NOT NULL default 'N', | |
102 | mode_lv enum('Y','N') NOT NULL default 'N', | |
103 | mode_lw enum('Y','N') NOT NULL default 'N', | |
104 | mode_lx enum('Y','N') NOT NULL default 'N', | |
105 | mode_lz enum('Y','N') NOT NULL default 'N', | |
106 | mode_ua enum('Y','N') NOT NULL default 'N', | |
107 | mode_ub enum('Y','N') NOT NULL default 'N', | |
108 | mode_uc enum('Y','N') NOT NULL default 'N', | |
109 | mode_uf enum('Y','N') NOT NULL default 'N', | |
110 | mode_ug enum('Y','N') NOT NULL default 'N', | |
111 | mode_uh enum('Y','N') NOT NULL default 'N', | |
112 | mode_ui enum('Y','N') NOT NULL default 'N', | |
113 | mode_un enum('Y','N') NOT NULL default 'N', | |
114 | mode_uo enum('Y','N') NOT NULL default 'N', | |
115 | mode_ur enum('Y','N') NOT NULL default 'N', | |
116 | mode_us enum('Y','N') NOT NULL default 'N', | |
117 | mode_ut enum('Y','N') NOT NULL default 'N', | |
118 | mode_uv enum('Y','N') NOT NULL default 'N', | |
119 | mode_uw enum('Y','N') NOT NULL default 'N', | |
120 | PRIMARY KEY (nickid), | |
121 | UNIQUE KEY nick (nick), | |
122 | KEY servid (servid) | |
123 | ) TYPE=MyISAM; | |
124 | ||
125 | CREATE TABLE maxvalues ( | |
126 | type varchar(10) NOT NULL default '', | |
127 | val int unsigned NOT NULL default '0', | |
128 | time datetime NOT NULL default '0000-00-00 00:00:00', | |
129 | PRIMARY KEY(type) | |
130 | ) TYPE=MyISAM; |