-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcrowley.sql
More file actions
214 lines (192 loc) · 6.97 KB
/
crowley.sql
File metadata and controls
214 lines (192 loc) · 6.97 KB
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/*
Navicat Premium Data Transfer
Source Server : asd
Source Server Type : MySQL
Source Server Version : 50519
Source Host : localhost
Source Database : crowley
Target Server Type : MySQL
Target Server Version : 50519
File Encoding : utf-8
Date: 02/20/2012 04:29:56 AM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `ban`
-- ----------------------------
DROP TABLE IF EXISTS `ban`;
CREATE TABLE `ban` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`reason` varchar(100) NOT NULL,
`created_at` datetime NOT NULL,
`expires_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `fuserank`
-- ----------------------------
DROP TABLE IF EXISTS `fuserank`;
CREATE TABLE `fuserank` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `fuserank`
-- ----------------------------
BEGIN;
INSERT INTO `fuserank` VALUES ('1', 'User');
COMMIT;
-- ----------------------------
-- Table structure for `fuserank_fuseright`
-- ----------------------------
DROP TABLE IF EXISTS `fuserank_fuseright`;
CREATE TABLE `fuserank_fuseright` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fuserank_id` int(11) NOT NULL,
`fuseright_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `fuserank_fuseright`
-- ----------------------------
BEGIN;
INSERT INTO `fuserank_fuseright` VALUES ('1', '1', '1'), ('2', '1', '2'), ('3', '1', '3'), ('4', '1', '4'), ('5', '1', '5');
COMMIT;
-- ----------------------------
-- Table structure for `fuseright`
-- ----------------------------
DROP TABLE IF EXISTS `fuseright`;
CREATE TABLE `fuseright` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`right` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `fuseright`
-- ----------------------------
BEGIN;
INSERT INTO `fuseright` VALUES ('1', 'fuse_room_queue_default'), ('2', 'fuse_buy_credits'), ('3', 'fuse_login'), ('4', 'default'), ('5', 'fuse_trade');
COMMIT;
-- ----------------------------
-- Table structure for `habbo`
-- ----------------------------
DROP TABLE IF EXISTS `habbo`;
CREATE TABLE `habbo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(16) NOT NULL,
`figure` varchar(100) NOT NULL,
`sso_ticket` varchar(100) DEFAULT NULL,
`sso_ip` varchar(15) DEFAULT NULL,
`sso_expires` datetime DEFAULT NULL,
`fuserank_id` int(11) NOT NULL DEFAULT '1',
`motto` varchar(25) NOT NULL,
`real_name` varchar(30) NOT NULL,
`gender` varchar(1) NOT NULL,
`credits` int(11) NOT NULL DEFAULT '0',
`activity_points` int(11) NOT NULL DEFAULT '0',
`sound_preference` int(3) NOT NULL DEFAULT '100',
`last_online` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `sso_ticket` (`sso_ticket`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `habbo`
-- ----------------------------
BEGIN;
INSERT INTO `habbo` VALUES ('1', 'Crowley', 'lg-270-64.hr-165-32.ch-260-64.sh-300-64.hd-205-2', 'testTicket', '127.0.0.1', '2015-02-10 06:34:27', '1', 'Crowley FTW<3', 'CrossroadsCrowley', 'M', '0', '0', '100', '0000-00-00 00:00:00'), ('2', 'Crossroads', 'lg-270-64.hr-165-32.ch-260-64.sh-300-64.hd-205-2', 'testTicket2', '127.0.0.1', '2015-02-10 06:34:27', '1', 'Crowley FTW<3', 'Crossroads', 'M', '0', '0', '100', '0000-00-00 00:00:00');
COMMIT;
-- ----------------------------
-- Table structure for `habbo_ban`
-- ----------------------------
DROP TABLE IF EXISTS `habbo_ban`;
CREATE TABLE `habbo_ban` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`habbo_id` int(11) NOT NULL,
`ban_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `habbo_friend`
-- ----------------------------
DROP TABLE IF EXISTS `habbo_friend`;
CREATE TABLE `habbo_friend` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`habbo_id` int(11) NOT NULL,
`friend_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `habbo_friend`
-- ----------------------------
BEGIN;
INSERT INTO `habbo_friend` VALUES ('1', '1', '2'), ('2', '2', '1');
COMMIT;
-- ----------------------------
-- Table structure for `habbo_friend_request`
-- ----------------------------
DROP TABLE IF EXISTS `habbo_friend_request`;
CREATE TABLE `habbo_friend_request` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`habbo_id` int(11) NOT NULL,
`friend_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `schema_migrations`
-- ----------------------------
DROP TABLE IF EXISTS `schema_migrations`;
CREATE TABLE `schema_migrations` (
`version` varchar(255) NOT NULL,
UNIQUE KEY `unique_schema_migrations` (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `schema_migrations`
-- ----------------------------
BEGIN;
INSERT INTO `schema_migrations` VALUES ('20120213035736');
COMMIT;
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL DEFAULT '',
`encrypted_password` varchar(128) NOT NULL DEFAULT '',
`reset_password_token` varchar(255) DEFAULT NULL,
`reset_password_sent_at` datetime DEFAULT NULL,
`remember_created_at` datetime DEFAULT NULL,
`sign_in_count` int(11) DEFAULT '0',
`current_sign_in_at` datetime DEFAULT NULL,
`last_sign_in_at` datetime DEFAULT NULL,
`current_sign_in_ip` varchar(255) DEFAULT NULL,
`last_sign_in_ip` varchar(255) DEFAULT NULL,
`password_salt` varchar(255) DEFAULT NULL,
`confirmation_token` varchar(255) DEFAULT NULL,
`confirmed_at` datetime DEFAULT NULL,
`confirmation_sent_at` datetime DEFAULT NULL,
`failed_attempts` int(11) DEFAULT '0',
`unlock_token` varchar(255) DEFAULT NULL,
`locked_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_user_on_email` (`email`),
UNIQUE KEY `index_user_on_reset_password_token` (`reset_password_token`),
UNIQUE KEY `index_user_on_confirmation_token` (`confirmation_token`),
UNIQUE KEY `index_user_on_unlock_token` (`unlock_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `user_habbo`
-- ----------------------------
DROP TABLE IF EXISTS `user_habbo`;
CREATE TABLE `user_habbo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`habbo_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;