-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
67 lines (48 loc) · 1.93 KB
/
database.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
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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 */;
-- set_guilds
CREATE TABLE IF NOT EXISTS `set_guilds` (
`guild_id` bigint(18) NOT NULL,
`playing` tinyint(1) NOT NULL,
`channel_id` bigint(18) DEFAULT NULL,
`playing_since` datetime DEFAULT NULL,
PRIMARY KEY (`guild_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- set_users
CREATE TABLE IF NOT EXISTS `set_users` (
`user_id` bigint(18) NOT NULL,
`delete_commands` tinyint(1) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- stat_bot_guilds
CREATE TABLE IF NOT EXISTS `stat_bot_guilds` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`startup` datetime NOT NULL,
`last_heartbeat` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- stat_bot_online
CREATE TABLE IF NOT EXISTS `stat_bot_online` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action` varchar(50) NOT NULL,
`timestamp` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- stat_bot_commands
CREATE TABLE IF NOT EXISTS `stat_bot_commands` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timestamp` datetime NOT NULL DEFAULT curtime(),
`command` varchar(50) NOT NULL,
`status` varchar(50) NOT NULL,
`user_id` varchar(50) DEFAULT NULL,
`guild_id` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;