1 | --
|
---|
2 | -- Struktura tabulky `achievement`
|
---|
3 | --
|
---|
4 |
|
---|
5 | CREATE TABLE IF NOT EXISTS `achievement` (
|
---|
6 | `id` bigint(20) NOT NULL COMMENT 'Entry',
|
---|
7 | `team` bigint(20) NOT NULL COMMENT '-1=all, 0=horde, 1=alliance',
|
---|
8 | `mapid` bigint(20) NOT NULL COMMENT '-1=none - Only set if achievement is related to a zone',
|
---|
9 | `field_3` bigint(20) NOT NULL,
|
---|
10 | `name01` text NOT NULL,
|
---|
11 | `name02` text NOT NULL,
|
---|
12 | `name03` text NOT NULL,
|
---|
13 | `name04` text NOT NULL,
|
---|
14 | `name05` text NOT NULL,
|
---|
15 | `name06` text NOT NULL,
|
---|
16 | `name07` text NOT NULL,
|
---|
17 | `name08` text NOT NULL,
|
---|
18 | `name09` text NOT NULL,
|
---|
19 | `name10` text NOT NULL,
|
---|
20 | `name11` text NOT NULL,
|
---|
21 | `name12` text NOT NULL,
|
---|
22 | `name13` text NOT NULL,
|
---|
23 | `name14` text NOT NULL,
|
---|
24 | `name15` text NOT NULL,
|
---|
25 | `name16` text NOT NULL,
|
---|
26 | `field_20` bigint(20) NOT NULL,
|
---|
27 | `description01` text NOT NULL COMMENT 'description - each for one locale',
|
---|
28 | `description02` text NOT NULL,
|
---|
29 | `description03` text NOT NULL,
|
---|
30 | `description04` text NOT NULL,
|
---|
31 | `description05` text NOT NULL,
|
---|
32 | `description06` text NOT NULL,
|
---|
33 | `description07` text NOT NULL,
|
---|
34 | `description08` text NOT NULL,
|
---|
35 | `description09` text NOT NULL,
|
---|
36 | `description10` text NOT NULL,
|
---|
37 | `description11` text NOT NULL,
|
---|
38 | `description12` text NOT NULL,
|
---|
39 | `description13` text NOT NULL,
|
---|
40 | `description14` text NOT NULL,
|
---|
41 | `description15` text NOT NULL,
|
---|
42 | `description16` text NOT NULL,
|
---|
43 | `field_37` bigint(20) NOT NULL,
|
---|
44 | `categoryid` bigint(20) NOT NULL COMMENT 'id of category',
|
---|
45 | `rewpoints` bigint(20) NOT NULL COMMENT 'rewarded points',
|
---|
46 | `order` bigint(20) NOT NULL COMMENT 'order in category',
|
---|
47 | `flags` bigint(20) NOT NULL COMMENT 'flags',
|
---|
48 | `field_42` bigint(20) NOT NULL,
|
---|
49 | `rewarddesc01` text NOT NULL COMMENT 'reward description - each for one locale',
|
---|
50 | `rewarddesc02` text NOT NULL,
|
---|
51 | `rewarddesc03` text NOT NULL,
|
---|
52 | `rewarddesc04` text NOT NULL,
|
---|
53 | `rewarddesc05` text NOT NULL,
|
---|
54 | `rewarddesc06` text NOT NULL,
|
---|
55 | `rewarddesc07` text NOT NULL,
|
---|
56 | `rewarddesc08` text NOT NULL,
|
---|
57 | `rewarddesc09` text NOT NULL,
|
---|
58 | `rewarddesc10` text NOT NULL,
|
---|
59 | `rewarddesc11` text NOT NULL,
|
---|
60 | `rewarddesc12` text NOT NULL,
|
---|
61 | `rewarddesc13` text NOT NULL,
|
---|
62 | `rewarddesc14` text NOT NULL,
|
---|
63 | `rewarddesc15` text NOT NULL,
|
---|
64 | `rewarddesc16` text NOT NULL,
|
---|
65 | `field_59` bigint(20) NOT NULL,
|
---|
66 | `field_60` bigint(20) NOT NULL,
|
---|
67 | `field_61` bigint(20) NOT NULL,
|
---|
68 | PRIMARY KEY (`id`)
|
---|
69 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
---|
70 |
|
---|
71 | -- --------------------------------------------------------
|
---|
72 |
|
---|
73 | --
|
---|
74 | -- Struktura tabulky `articles`
|
---|
75 | --
|
---|
76 |
|
---|
77 | CREATE TABLE IF NOT EXISTS `articles` (
|
---|
78 | `id` int(11) NOT NULL auto_increment,
|
---|
79 | `title` text collate utf8_czech_ci NOT NULL,
|
---|
80 | `autor` text collate utf8_czech_ci NOT NULL,
|
---|
81 | `category` int(11) NOT NULL default '0',
|
---|
82 | `text` text collate utf8_czech_ci NOT NULL,
|
---|
83 | `date` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
|
---|
84 | PRIMARY KEY (`id`)
|
---|
85 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=117 ;
|
---|
86 |
|
---|
87 | -- --------------------------------------------------------
|
---|
88 |
|
---|
89 | --
|
---|
90 | -- Struktura tabulky `characters`
|
---|
91 | --
|
---|
92 |
|
---|
93 | CREATE TABLE IF NOT EXISTS `characters` (
|
---|
94 | `guid` int(11) NOT NULL default '0',
|
---|
95 | `warm` int(11) NOT NULL default '0',
|
---|
96 | `weblevel` int(11) NOT NULL default '0'
|
---|
97 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
---|
98 |
|
---|
99 | -- --------------------------------------------------------
|
---|
100 |
|
---|
101 | --
|
---|
102 | -- Struktura tabulky `chyby`
|
---|
103 | --
|
---|
104 |
|
---|
105 | CREATE TABLE IF NOT EXISTS `chyby` (
|
---|
106 | `id` int(8) NOT NULL auto_increment,
|
---|
107 | `id_name` varchar(128) collate utf8_czech_ci NOT NULL,
|
---|
108 | `jmeno` varchar(128) collate utf8_czech_ci NOT NULL,
|
---|
109 | `prispevek` text collate utf8_czech_ci NOT NULL,
|
---|
110 | `postava` text collate utf8_czech_ci NOT NULL,
|
---|
111 | `typ` int(24) NOT NULL,
|
---|
112 | `frakce` int(24) NOT NULL,
|
---|
113 | `mail` varchar(128) collate utf8_czech_ci NOT NULL,
|
---|
114 | `screenshot` text collate utf8_czech_ci NOT NULL,
|
---|
115 | `datum` int(24) NOT NULL,
|
---|
116 | `status` int(24) NOT NULL,
|
---|
117 | `ip` varchar(16) collate utf8_czech_ci NOT NULL,
|
---|
118 | PRIMARY KEY (`id`)
|
---|
119 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=91 ;
|
---|
120 |
|
---|
121 | -- --------------------------------------------------------
|
---|
122 |
|
---|
123 | --
|
---|
124 | -- Struktura tabulky `comments`
|
---|
125 | --
|
---|
126 |
|
---|
127 | CREATE TABLE IF NOT EXISTS `comments` (
|
---|
128 | `id` int(11) NOT NULL auto_increment,
|
---|
129 | `user` text collate utf8_czech_ci NOT NULL,
|
---|
130 | `comment` text collate utf8_czech_ci NOT NULL,
|
---|
131 | `time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
---|
132 | PRIMARY KEY (`id`)
|
---|
133 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
|
---|
134 |
|
---|
135 | -- --------------------------------------------------------
|
---|
136 |
|
---|
137 | --
|
---|
138 | -- Struktura tabulky `debug`
|
---|
139 | --
|
---|
140 |
|
---|
141 | CREATE TABLE IF NOT EXISTS `debug` (
|
---|
142 | `Id` int(11) NOT NULL auto_increment,
|
---|
143 | `Time` datetime NOT NULL,
|
---|
144 | `Backtrace` mediumtext collate latin2_czech_cs NOT NULL,
|
---|
145 | `Log` text collate latin2_czech_cs NOT NULL,
|
---|
146 | `MangosVersion` varchar(255) collate latin2_czech_cs NOT NULL,
|
---|
147 | `DbVersion` varchar(255) collate latin2_czech_cs NOT NULL,
|
---|
148 | `MaxPlayerCount` int(11) NOT NULL,
|
---|
149 | `Uptime` int(11) NOT NULL,
|
---|
150 | `ErrorLog` text collate latin2_czech_cs NOT NULL,
|
---|
151 | `DbErrors` text collate latin2_czech_cs NOT NULL,
|
---|
152 | `Configuration` text collate latin2_czech_cs NOT NULL,
|
---|
153 | PRIMARY KEY (`Id`)
|
---|
154 | ) ENGINE=MyISAM DEFAULT CHARSET=latin2 COLLATE=latin2_czech_cs AUTO_INCREMENT=1 ;
|
---|
155 |
|
---|
156 | -- --------------------------------------------------------
|
---|
157 |
|
---|
158 | --
|
---|
159 | -- Struktura tabulky `diskuze`
|
---|
160 | --
|
---|
161 |
|
---|
162 | CREATE TABLE IF NOT EXISTS `diskuze` (
|
---|
163 | `id` int(8) NOT NULL auto_increment,
|
---|
164 | `entry` int(24) NOT NULL,
|
---|
165 | `jmeno` varchar(128) collate utf8_czech_ci NOT NULL,
|
---|
166 | `prispevek` text collate utf8_czech_ci NOT NULL,
|
---|
167 | `datum` int(24) NOT NULL,
|
---|
168 | `ip` varchar(16) collate utf8_czech_ci NOT NULL,
|
---|
169 | PRIMARY KEY (`id`)
|
---|
170 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=41 ;
|
---|
171 |
|
---|
172 | -- --------------------------------------------------------
|
---|
173 |
|
---|
174 | --
|
---|
175 | -- Struktura tabulky `export_list`
|
---|
176 | --
|
---|
177 |
|
---|
178 | CREATE TABLE IF NOT EXISTS `export_list` (
|
---|
179 | `typ` varchar(255) collate utf8_czech_ci default NULL,
|
---|
180 | `guid` varchar(255) collate utf8_czech_ci default NULL
|
---|
181 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
|
---|
182 |
|
---|
183 | -- --------------------------------------------------------
|
---|
184 |
|
---|
185 | --
|
---|
186 | -- Struktura tabulky `finance`
|
---|
187 | --
|
---|
188 |
|
---|
189 | CREATE TABLE IF NOT EXISTS `finance` (
|
---|
190 | `id` int(11) NOT NULL auto_increment,
|
---|
191 | `time` datetime default NULL,
|
---|
192 | `money` int(11) default NULL,
|
---|
193 | `operation` enum('contribution','consumption','buy','internet','sell') collate latin2_czech_cs NOT NULL default 'contribution',
|
---|
194 | `description` varchar(255) collate latin2_czech_cs default NULL,
|
---|
195 | `odmena` varchar(255) character set utf8 collate utf8_czech_ci NOT NULL,
|
---|
196 | KEY `ID` (`id`)
|
---|
197 | ) ENGINE=MyISAM DEFAULT CHARSET=latin2 COLLATE=latin2_czech_cs AUTO_INCREMENT=128 ;
|
---|
198 |
|
---|
199 | -- --------------------------------------------------------
|
---|
200 |
|
---|
201 | --
|
---|
202 | -- Struktura tabulky `guildy`
|
---|
203 | --
|
---|
204 |
|
---|
205 | CREATE TABLE IF NOT EXISTS `guildy` (
|
---|
206 | `id` varchar(255) default NULL,
|
---|
207 | `jmeno` varchar(255) character set utf8 collate utf8_czech_ci default NULL,
|
---|
208 | `GuM` varchar(255) default NULL,
|
---|
209 | `typgh` varchar(255) NOT NULL,
|
---|
210 | `dalsi_platba` date default NULL
|
---|
211 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
---|
212 |
|
---|
213 | -- --------------------------------------------------------
|
---|
214 |
|
---|
215 | --
|
---|
216 | -- Struktura tabulky `users`
|
---|
217 | --
|
---|
218 |
|
---|
219 | CREATE TABLE IF NOT EXISTS `users` (
|
---|
220 | `id` int(11) NOT NULL auto_increment,
|
---|
221 | `realmd_id` int(11) NOT NULL default '0',
|
---|
222 | `name` text character set utf8 collate utf8_czech_ci NOT NULL,
|
---|
223 | PRIMARY KEY (`id`)
|
---|
224 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
---|
225 |
|
---|
226 | -- --------------------------------------------------------
|
---|
227 |
|
---|
228 | --
|
---|
229 | -- Struktura tabulky `uzivatele`
|
---|
230 | --
|
---|
231 |
|
---|
232 | CREATE TABLE IF NOT EXISTS `uzivatele` (
|
---|
233 | `id` int(64) NOT NULL auto_increment,
|
---|
234 | `user` varchar(1024) collate utf8_czech_ci NOT NULL,
|
---|
235 | `pass` varchar(40) collate utf8_czech_ci NOT NULL,
|
---|
236 | `mail` varchar(1024) collate utf8_czech_ci NOT NULL,
|
---|
237 | PRIMARY KEY (`id`)
|
---|
238 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=3 ;
|
---|