forked from ohMatty/CSGOShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.sql
299 lines (252 loc) · 11.6 KB
/
db.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.6.17 - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL Version: 8.3.0.4694
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for csgoshop.development
CREATE DATABASE IF NOT EXISTS `csgoshop.development` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `csgoshop.development`;
-- Dumping structure for table csgoshop.development.bots
CREATE TABLE IF NOT EXISTS `bots` (
`id` bigint(17) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT NULL,
`type` int(1) DEFAULT NULL,
`avatar_url` varchar(255) DEFAULT NULL,
`steam_status` int(1) DEFAULT NULL,
`last_sync` int(10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.bots: ~0 rows (approximately)
/*!40000 ALTER TABLE `bots` DISABLE KEYS */;
/*!40000 ALTER TABLE `bots` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.cashout_listings
CREATE TABLE IF NOT EXISTS `cashout_listings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cashout_request_id` int(11) NOT NULL,
`listing_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.cashout_listings: ~0 rows (approximately)
/*!40000 ALTER TABLE `cashout_listings` DISABLE KEYS */;
/*!40000 ALTER TABLE `cashout_listings` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.cashout_requests
CREATE TABLE IF NOT EXISTS `cashout_requests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`updated_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`total` decimal(6,2) NOT NULL DEFAULT '0.00',
`status` int(11) NOT NULL DEFAULT '0',
`user_id` bigint(17) NOT NULL,
`paypal` varchar(254) NOT NULL,
`token` varchar(254) DEFAULT NULL,
`provider` varchar(45) NOT NULL,
`provider_identifier` varchar(254) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.cashout_requests: ~0 rows (approximately)
/*!40000 ALTER TABLE `cashout_requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `cashout_requests` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.descriptions
CREATE TABLE IF NOT EXISTS `descriptions` (
`id` varchar(50) NOT NULL,
`name` varchar(100) NOT NULL,
`icon_url` varchar(300) NOT NULL,
`icon_url_large` varchar(300) DEFAULT NULL,
`inspect_url_template` varchar(300) DEFAULT NULL,
`stackable` tinyint(4) NOT NULL DEFAULT '-1',
`name_color` varchar(45) DEFAULT NULL,
`market_name` varchar(100) DEFAULT NULL,
`price_preset` decimal(6,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.descriptions: ~0 rows (approximately)
/*!40000 ALTER TABLE `descriptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `descriptions` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.descriptiontags
CREATE TABLE IF NOT EXISTS `descriptiontags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description_id` varchar(50) NOT NULL,
`tag_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.descriptiontags: ~0 rows (approximately)
/*!40000 ALTER TABLE `descriptiontags` DISABLE KEYS */;
/*!40000 ALTER TABLE `descriptiontags` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.listings
CREATE TABLE IF NOT EXISTS `listings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` bigint(17) NOT NULL,
`item_id` bigint(17) NOT NULL,
`message` varchar(500) DEFAULT NULL,
`price` decimal(6,2) NOT NULL DEFAULT '0.00',
`stage` tinyint(4) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT '0000-00-00 00:00:00',
`description_id` varchar(50) NOT NULL,
`trade_url` varchar(255) DEFAULT NULL,
`trade_code` varchar(45) DEFAULT NULL,
`featured` int(1) DEFAULT NULL,
`screenshot_playside` varchar(45) DEFAULT NULL,
`screenshot_backside` varchar(45) DEFAULT NULL,
`note_playside` varchar(45) DEFAULT NULL,
`note_backside` varchar(45) DEFAULT NULL,
`request_takedown` int(1) NOT NULL DEFAULT '0',
`parent_listing_id` int(11) DEFAULT NULL,
`inspect_url` varchar(300) DEFAULT NULL,
`bot_id` bigint(17) DEFAULT NULL,
`checkout` int(1) NOT NULL DEFAULT '0',
`checkout_user_id` bigint(17) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.listings: ~0 rows (approximately)
/*!40000 ALTER TABLE `listings` DISABLE KEYS */;
/*!40000 ALTER TABLE `listings` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`user_id` bigint(17) NOT NULL DEFAULT '0',
`receiver_id` bigint(17) NOT NULL DEFAULT '0',
`title` varchar(255) NOT NULL,
`body` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`deleted` int(1) NOT NULL DEFAULT '0',
`seen` int(1) NOT NULL DEFAULT '0',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.notifications: ~0 rows (approximately)
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.orderitems
CREATE TABLE IF NOT EXISTS `orderitems` (
`order_id` int(11) NOT NULL,
`listing_id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.orderitems: ~0 rows (approximately)
/*!40000 ALTER TABLE `orderitems` DISABLE KEYS */;
/*!40000 ALTER TABLE `orderitems` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.orders
CREATE TABLE IF NOT EXISTS `orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` bigint(17) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT '0000-00-00 00:00:00',
`provider` varchar(45) NOT NULL,
`total` decimal(6,2) NOT NULL,
`transaction` varchar(256) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.orders: ~0 rows (approximately)
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.pages
CREATE TABLE IF NOT EXISTS `pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` bigint(17) NOT NULL DEFAULT '0',
`title` varchar(255) NOT NULL,
`body` text NOT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.pages: ~4 rows (approximately)
/*!40000 ALTER TABLE `pages` DISABLE KEYS */;
INSERT INTO `pages` (`id`, `user_id`, `title`, `body`, `updated_at`, `created_at`) VALUES
(1, 76561198034369542, 'Frequently Asked Questions', '', '2014-08-26 04:10:50', '2014-08-06 19:42:31'),
(2, 76561198034369542, 'Affiliates', '', '2014-08-07 03:57:17', '2014-08-06 19:42:31'),
(3, 76561198044189366, 'Terms of Service', '', '2014-08-25 04:10:09', '2014-08-06 19:42:31'),
(4, 76561198044189366, 'Privacy Policy', '', '2014-08-25 04:10:12', '2014-08-06 19:42:31');
/*!40000 ALTER TABLE `pages` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.sessions
CREATE TABLE IF NOT EXISTS `sessions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hash` varchar(32) DEFAULT NULL,
`user_id` bigint(17) DEFAULT NULL,
`user_agent` varchar(255) DEFAULT NULL,
`ip` varchar(50) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `hash` (`hash`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.sessions: ~0 rows (approximately)
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.support_replies
CREATE TABLE IF NOT EXISTS `support_replies` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`support_id` int(10) NOT NULL DEFAULT '0',
`user_id` bigint(17) NOT NULL DEFAULT '0',
`body` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.support_replies: ~0 rows (approximately)
/*!40000 ALTER TABLE `support_replies` DISABLE KEYS */;
/*!40000 ALTER TABLE `support_replies` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.support_tickets
CREATE TABLE IF NOT EXISTS `support_tickets` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`user_id` bigint(17) NOT NULL DEFAULT '0',
`subject` varchar(255) NOT NULL,
`body` text NOT NULL,
`status` int(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_reply` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.support_tickets: ~0 rows (approximately)
/*!40000 ALTER TABLE `support_tickets` DISABLE KEYS */;
/*!40000 ALTER TABLE `support_tickets` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.tags
CREATE TABLE IF NOT EXISTS `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category` varchar(45) NOT NULL,
`category_name` varchar(45) NOT NULL,
`internal_name` varchar(45) NOT NULL,
`name` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.tags: ~0 rows (approximately)
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
-- Dumping structure for table csgoshop.development.users
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(17) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`profile_private` int(1) NOT NULL,
`inventory_private` int(1) NOT NULL,
`rank` int(3) NOT NULL DEFAULT '10',
`avatar_url` varchar(255) NOT NULL,
`steam_status` int(1) NOT NULL,
`last_sync` int(10) NOT NULL,
`trade_url` varchar(80) DEFAULT NULL,
`ip_register` varchar(45) NOT NULL,
`ip_last` varchar(45) DEFAULT NULL,
`name_register` varchar(255) NOT NULL,
`inventory_cached` mediumtext,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL,
`last_cashout` timestamp NULL DEFAULT NULL,
`tos_agree` int(1) NOT NULL DEFAULT '0',
`paypal` varchar(254) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table csgoshop.development.users: ~0 rows (approximately)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;