forked from jitendra1998/headshot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dump_30dec.sql
318 lines (279 loc) · 13.1 KB
/
dump_30dec.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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64)
--
-- Host: localhost Database: quizycash
-- ------------------------------------------------------
-- Server version 5.7.20-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `Session`
--
DROP TABLE IF EXISTS `Session`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Session` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`session_info` varchar(255) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`game_room_id` int(11) NOT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`expired_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_session__game_room_id` (`game_room_id`),
KEY `idx_session__user_id` (`user_id`),
CONSTRAINT `fk_session__game_room_id` FOREIGN KEY (`game_room_id`) REFERENCES `game_room` (`id`),
CONSTRAINT `fk_session__user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Session`
--
LOCK TABLES `Session` WRITE;
/*!40000 ALTER TABLE `Session` DISABLE KEYS */;
/*!40000 ALTER TABLE `Session` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `betting_round`
--
DROP TABLE IF EXISTS `betting_round`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `betting_round` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`betting_no` mediumint(9) DEFAULT '0',
`question` mediumint(9) DEFAULT '0',
`hint` mediumint(9) DEFAULT '0',
`active_players` bigint(20) DEFAULT '0',
`player_id` int(11) DEFAULT NULL,
`game_room` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_betting_round__game_room` (`game_room`),
KEY `idx_betting_round__player_id` (`player_id`),
CONSTRAINT `fk_betting_round__game_room` FOREIGN KEY (`game_room`) REFERENCES `game_room` (`id`),
CONSTRAINT `fk_betting_round__player_id` FOREIGN KEY (`player_id`) REFERENCES `player` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `betting_round`
--
LOCK TABLES `betting_round` WRITE;
/*!40000 ALTER TABLE `betting_round` DISABLE KEYS */;
/*!40000 ALTER TABLE `betting_round` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `client_admin`
--
DROP TABLE IF EXISTS `client_admin`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `client_admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`admin_user_name` varchar(255) NOT NULL,
`admin_password` varchar(255) NOT NULL,
`created_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `client_admin`
--
LOCK TABLES `client_admin` WRITE;
/*!40000 ALTER TABLE `client_admin` DISABLE KEYS */;
/*!40000 ALTER TABLE `client_admin` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `game_room`
--
DROP TABLE IF EXISTS `game_room`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_room` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`game_room_name` varchar(255) DEFAULT NULL,
`game_category` varchar(50) DEFAULT NULL,
`max_players` mediumint(9) DEFAULT '0',
`game_theme` varchar(50) DEFAULT NULL,
`min_buy_in` mediumint(9) DEFAULT '0',
`max_buy_in` mediumint(9) DEFAULT '0',
`game_status` tinyint(1) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`big_blind` mediumint(9) DEFAULT '0',
`small_blind` mediumint(9) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `game_room`
--
LOCK TABLES `game_room` WRITE;
/*!40000 ALTER TABLE `game_room` DISABLE KEYS */;
INSERT INTO `game_room` VALUES
(0,'game1','soccer-world-cup',10,'sports',1,10,1,'2017-08-03 15:36:45',NULL,NULL,2,1),
(1,'game1','soccer-world-cup',10,'sports',3,30,1,'2017-08-03 15:36:45',NULL,NULL,6,3),
(2,'game2','chemistry',10,'science',2,20,1,'2017-09-13 21:40:05',NULL,NULL,4,2),
(3,'game3','social_sciences',10,'social_sciences',4,20,1,'2017-09-20 08:19:32',NULL,NULL,8,4),
(4,'game4','sciences',10,'sciences',2,20,1,'2017-09-13 21:40:05',NULL,NULL,4,2),
(5,'game5','soccer-world-cup',10,'sports',2,30,1,'2017-09-20 08:19:32',NULL,NULL,4,2),
(6,'game6','football',10,'science',5,50,1,'2017-09-13 21:40:05',NULL,NULL,10,5),
(7,'game7','europe-capitals',10,'other',1,10,1,'2017-09-20 08:19:32',NULL,NULL,2,1),
(8,'game8','pop-art',10,'other',2,20,1,'2017-08-03 15:36:45',NULL,NULL,4,2),
(9,'game9','world-capitals',10,'other',1,10,1,'2017-09-13 21:40:05',NULL,NULL,2,1),
(10,'game10','astronomy',10,'other',3,30,1,'2017-09-20 08:19:32',NULL,NULL,6,3);
/*!40000 ALTER TABLE `game_room` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `game_statistics`
--
DROP TABLE IF EXISTS `game_statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_statistics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `game_statistics`
--
LOCK TABLES `game_statistics` WRITE;
/*!40000 ALTER TABLE `game_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `game_statistics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `live_game_play`
--
DROP TABLE IF EXISTS `live_game_play`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `live_game_play` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT '0',
`pot_amount` double DEFAULT '0',
`player_action` varchar(50) NOT NULL,
`buy_in` double DEFAULT '0',
`joined_at` datetime DEFAULT NULL,
`left_at` datetime DEFAULT NULL,
`game_room_id` int(11) NOT NULL,
`betting_round_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_live_game_play__betting_round_id` (`betting_round_id`),
KEY `idx_live_game_play__game_room_id` (`game_room_id`),
CONSTRAINT `fk_live_game_play__betting_round_id` FOREIGN KEY (`betting_round_id`) REFERENCES `betting_round` (`id`),
CONSTRAINT `fk_live_game_play__game_room_id` FOREIGN KEY (`game_room_id`) REFERENCES `game_room` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `live_game_play`
--
LOCK TABLES `live_game_play` WRITE;
/*!40000 ALTER TABLE `live_game_play` DISABLE KEYS */;
/*!40000 ALTER TABLE `live_game_play` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `player`
--
DROP TABLE IF EXISTS `player`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `player` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_action` varchar(255) NOT NULL,
`balance` varchar(255) DEFAULT '0',
`is_dealer` tinyint(1) DEFAULT '0',
`user_id` int(11) NOT NULL,
`has_turn` tinyint(1) DEFAULT '0',
`game_room` int(11) NOT NULL,
`is_active` tinyint(1) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_player__game_room` (`game_room`),
KEY `idx_player__user_id` (`user_id`),
CONSTRAINT `fk_player__game_room` FOREIGN KEY (`game_room`) REFERENCES `game_room` (`id`),
CONSTRAINT `fk_player__user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `player`
--
LOCK TABLES `player` WRITE;
/*!40000 ALTER TABLE `player` DISABLE KEYS */;
/*!40000 ALTER TABLE `player` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`virtual_money` double DEFAULT '0',
`user_availability` tinyint(1) DEFAULT '0',
`gender` varchar(20) DEFAULT NULL,
`date_of_birth` varchar(12) DEFAULT NULL,
`first_name` varchar(50) DEFAULT NULL,
`last_name` varchar(50) DEFAULT NULL,
`profile_image` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`country` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES (1,'java_guy','java_guy',1000000,0,'male','1997-05-02','java','guy',NULL,'2017-09-06 06:12:55',NULL,NULL,'java_guy@gmail.com','India'),(2,'pratik','pratik',1000000,0,'male','1997-02-02','Pratik','Salunkhe',NULL,'2017-09-06 06:14:06',NULL,NULL,'pratik.sal13@gmail.com','India'),(3,'python','python',9999000,0,'male','1998-02-02','python','program',NULL,'2017-09-06 06:22:57',NULL,NULL,'python@gmail.com','India'),(4,'ruby','ruby',10000000,0,'male','1998-02-02','ruby','program',NULL,'2017-09-06 06:23:42',NULL,NULL,'ruby@gmail.com','India'),(5,'a','12345',9995386.01,0,'male','1925-02-05','avinash','goje',NULL,'2017-09-06 06:34:38',NULL,NULL,'a@gmail.com','ind'),(6,'b','12345',999997708,0,'male','1998-05-05','type','script',NULL,'2017-09-06 06:37:25',NULL,NULL,'b@gmail.com','india'),(7,'c','12345',10003209,0,'male','1995-05-05','avina','goj',NULL,'2017-09-07 09:24:14',NULL,NULL,'c@gmail.com','India'),(8,'d','12345',100000000,0,'male','1998-05-03','pen','pen',NULL,'2017-09-07 09:24:36',NULL,NULL,'d@gmail.com','india'),(9,'lalala','12345',100000000,0,'male','1995-02-02','lala','lala',NULL,'2017-09-07 12:48:51',NULL,NULL,'lalala@lala.com','lalala'),(10,'Shellzcrypt','123400000',100,0,'female','2011-11-11','Shilpa','K',NULL,'2017-09-08 15:00:20',NULL,NULL,'shilpa@myraatechnologies.com','India'),(11,'abc@gmail.com','12345',100000000,0,'male','1995-06-03','abc','xyz',NULL,'2017-09-08 15:06:43',NULL,NULL,'abc@gmail.com','ind'),(12,'lala','lala',12353620,0,'male','1995-06-12','lala','lala',NULL,'2017-09-20 13:17:31',NULL,NULL,'lala@email.com','india'),(13,'poly','poly',991000,0,'male','2014-05-04','asd','as',NULL,'2017-09-20 13:18:40',NULL,NULL,'poly@gmail.com','ind'),(14,'rhishikesh','12345',100000000,0,'male','1993-04-05','rhishi','mhatre',NULL,'2017-09-20 13:24:41',NULL,NULL,'rhishikesh@gmail.com','India'),(15,'kriti','K.n1202.',10000020,0,'male','2017-09-07','kriti','nidhi',NULL,'2017-09-20 13:29:00',NULL,NULL,'kritinidhi1202@gmail.com','India'),(16,'MyraaTron','123',10000000,0,'male','2011-11-11','Myraa','Tron',NULL,'2017-09-20 13:31:05',NULL,NULL,'my@my.com','India');
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_statistics`
--
DROP TABLE IF EXISTS `user_statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_statistics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`games_played` mediumint(9) DEFAULT '0',
`games_won` mediumint(9) DEFAULT '0',
`no_of_folds` mediumint(9) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_statistics`
--
LOCK TABLES `user_statistics` WRITE;
/*!40000 ALTER TABLE `user_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_statistics` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-12-30 7:27:31