This repository has been archived by the owner on Sep 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
database_creation.sql
192 lines (174 loc) · 6.32 KB
/
database_creation.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
CREATE DATABASE `newyahoo` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `newyahoo`;
CREATE TABLE `checkers_admins` (
`name` varchar(32) NOT NULL DEFAULT '',
`level` int(10) unsigned NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `checkers_games` (
`game_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`players` blob,
`oldratings` blob,
`newratings` blob,
`game_data` blob,
`flags` bigint(20) unsigned DEFAULT NULL,
`result` blob,
PRIMARY KEY (`game_id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;
CREATE TABLE `checkers_ignoreds` (
`name` varchar(32) NOT NULL DEFAULT '',
`ban_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ban_type` smallint(5) unsigned NOT NULL,
`ban_time` bigint(20) NOT NULL,
`reason` text NOT NULL,
`admin` varchar(32) NOT NULL,
`ip` varchar(16) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `checkers_profiles` (
`name` varchar(32) NOT NULL DEFAULT '',
`rating` int(11) NOT NULL DEFAULT '1200',
`wins` int(10) unsigned NOT NULL DEFAULT '0',
`losses` int(10) unsigned NOT NULL DEFAULT '0',
`draws` int(10) unsigned NOT NULL DEFAULT '0',
`streak` int(11) NOT NULL DEFAULT '0',
`aborteds` int(10) unsigned NOT NULL DEFAULT '0',
`flags` bigint(20) unsigned NOT NULL,
`ip` varchar(16) NOT NULL DEFAULT '0.0.0.0',
PRIMARY KEY (`name`),
KEY `index_2` (`ip`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `checkers_rooms` (
`name` varchar(32) NOT NULL DEFAULT '',
`label` text,
`public` tinyint(1) NOT NULL,
`country` varchar(2) NOT NULL,
`welcome_msg` text NOT NULL,
`id_count` int(10) unsigned NOT NULL,
PRIMARY KEY (`name`,`country`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `games` (
`name` varchar(32) NOT NULL DEFAULT '',
`label` text,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `ids` (
`name` varchar(32) NOT NULL DEFAULT '',
`creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` smallint(5) unsigned NOT NULL DEFAULT '0',
`flags` bigint(20) unsigned NOT NULL DEFAULT '192',
`more_flags` int(10) unsigned NOT NULL DEFAULT '0',
`password` varchar(16) NOT NULL,
`ycookie` varchar(72) NOT NULL DEFAULT '0',
`e-mail` text NOT NULL,
`ip` varchar(16) NOT NULL DEFAULT '0.0.0.0',
`cookie_expires` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_access` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`avatar` smallint(5) unsigned NOT NULL DEFAULT '0',
`friends` blob,
`ignoreds` blob,
`games_common_sound` tinyint(1) NOT NULL DEFAULT '1',
`prowler_g` tinyint(1) NOT NULL DEFAULT '2',
`games_common_profanity` smallint(5) unsigned NOT NULL DEFAULT '1',
`games_common_hidestar` tinyint(1) NOT NULL DEFAULT '0',
`games_common_smallwindows` tinyint(1) NOT NULL DEFAULT '0',
`games_common_automove` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool2_admins` (
`name` varchar(32) NOT NULL DEFAULT '',
`level` int(10) unsigned NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool2_games` (
`game_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`players` blob,
`oldratings` blob,
`newratings` blob,
`game_data` blob,
`flags` bigint(20) unsigned DEFAULT NULL,
`result` blob,
PRIMARY KEY (`game_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool2_ignoreds` (
`name` varchar(32) NOT NULL DEFAULT '',
`ban_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ban_type` smallint(5) unsigned NOT NULL,
`ban_time` bigint(20) NOT NULL,
`reason` text NOT NULL,
`admin` varchar(32) NOT NULL,
`ip` varchar(16) NOT NULL,
PRIMARY KEY (`name`,`admin`,`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool2_profiles` (
`name` varchar(32) NOT NULL DEFAULT '',
`rating` int(11) NOT NULL DEFAULT '1200',
`wins` int(10) unsigned NOT NULL DEFAULT '0',
`losses` int(10) unsigned NOT NULL DEFAULT '0',
`draws` int(10) unsigned NOT NULL DEFAULT '0',
`streak` int(11) NOT NULL DEFAULT '0',
`aborteds` int(10) unsigned NOT NULL DEFAULT '0',
`flags` bigint(20) unsigned NOT NULL,
`ip` varchar(16) NOT NULL,
PRIMARY KEY (`name`,`ip`),
KEY `index_2` (`ip`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool2_rooms` (
`name` varchar(32) NOT NULL DEFAULT '',
`label` text,
`public` tinyint(1) NOT NULL,
`country` varchar(2) NOT NULL,
`welcome_msg` text NOT NULL,
`id_count` int(10) unsigned NOT NULL,
PRIMARY KEY (`name`,`country`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool_admins` (
`name` varchar(32) NOT NULL DEFAULT '',
`level` int(10) unsigned NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool_games` (
`game_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`players` blob,
`oldratings` blob,
`newratings` blob,
`game_data` blob,
`flags` bigint(20) unsigned DEFAULT NULL,
`result` blob,
PRIMARY KEY (`game_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool_ignoreds` (
`name` varchar(32) NOT NULL DEFAULT '',
`ban_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ban_type` smallint(5) unsigned NOT NULL,
`ban_time` bigint(20) NOT NULL,
`reason` text NOT NULL,
`admin` varchar(32) NOT NULL,
`ip` varchar(16) NOT NULL,
PRIMARY KEY (`name`,`admin`,`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool_profiles` (
`name` varchar(32) NOT NULL DEFAULT '',
`rating` int(11) NOT NULL DEFAULT '1200',
`wins` int(10) unsigned NOT NULL DEFAULT '0',
`losses` int(10) unsigned NOT NULL DEFAULT '0',
`draws` int(10) unsigned NOT NULL DEFAULT '0',
`streak` int(11) NOT NULL DEFAULT '0',
`aborteds` int(10) unsigned NOT NULL DEFAULT '0',
`flags` bigint(20) unsigned NOT NULL,
`ip` varchar(16) NOT NULL DEFAULT '0.0.0.0',
PRIMARY KEY (`name`),
KEY `index_2` (`ip`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `pool_rooms` (
`name` varchar(32) NOT NULL DEFAULT '',
`label` text,
`public` tinyint(1) NOT NULL,
`country` varchar(2) NOT NULL,
`welcome_msg` text NOT NULL,
`id_count` int(10) unsigned NOT NULL,
PRIMARY KEY (`name`,`country`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;