forked from atis/raid-pokemon-bot
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathraid-pokemon-bot.sql
71 lines (62 loc) · 2.55 KB
/
raid-pokemon-bot.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
/*
SQLyog Community v8.8 Beta2
MySQL - 5.7.19-0ubuntu0.16.04.1 : Database - 437562092
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_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 `attendance` */
CREATE TABLE `attendance` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`raid_id` int(10) unsigned DEFAULT NULL,
`attend_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`team` enum('mystic','valor','instinct') DEFAULT NULL,
`extra_people` int(10) unsigned DEFAULT NULL,
`extra_1_team` enum('mystic','valor','instinct') DEFAULT NULL,
`extra_2_team` enum('mystic','valor','instinct') DEFAULT NULL,
`extra_3_team` enum('mystic','valor','instinct') DEFAULT NULL,
`extra_4_team` enum('mystic','valor','instinct') DEFAULT NULL,
`arrived` tinyint(1) unsigned DEFAULT 0,
`raid_done` tinyint(1) unsigned DEFAULT 0,
`cancel` tinyint(1) unsigned DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8;
/*Table structure for table `raids` */
CREATE TABLE `raids` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`pokemon` varchar(12) DEFAULT NULL,
`lat` varchar(11) DEFAULT NULL,
`lon` varchar(11) DEFAULT NULL,
`first_seen` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`timezone` char(30) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`gym_name` varchar(255) DEFAULT NULL,
`gym_team` enum('mystic','valor','instinct') DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8;
/*Table structure for table `users` */
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`nick` varchar(100) DEFAULT NULL,
`name` varchar(200) DEFAULT NULL,
`team` enum('mystic','valor','instinct') DEFAULT NULL,
`moderator` tinyint(1) unsigned DEFAULT NULL,
`timezone` int(10) DEFAULT NULL,
`lang` varchar(5) DEFAULT NULL,
`alert_lat` varchar(12) DEFAULT NULL,
`alert_lon` varchar(12) DEFAULT NULL,
`level` int(10) unsigned DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `i_userid` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;