-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdatabase_skeleton.sql
More file actions
148 lines (124 loc) · 5.27 KB
/
database_skeleton.sql
File metadata and controls
148 lines (124 loc) · 5.27 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
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.3.15-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 10.3.0.5771
-- --------------------------------------------------------
/*!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' */;
-- Dumping database structure for discord
CREATE DATABASE IF NOT EXISTS `discord` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `discord`;
-- Dumping structure for table discord.friends_chats
CREATE TABLE IF NOT EXISTS `friends_chats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` varchar(50) NOT NULL,
`discord_id` bigint(20) NOT NULL,
`added` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.guess_items
CREATE TABLE IF NOT EXISTS `guess_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_name` varchar(50) NOT NULL,
`item_pic_url` varchar(500) NOT NULL,
`hint` varchar(500) NOT NULL,
`added` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.linked
CREATE TABLE IF NOT EXISTS `linked` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`discord_id` bigint(20) NOT NULL,
`added` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.misc
CREATE TABLE IF NOT EXISTS `misc` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(50) NOT NULL,
`value` varchar(500) NOT NULL,
`last_updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.places
CREATE TABLE IF NOT EXISTS `places` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`x` int(11) NOT NULL,
`y` int(11) NOT NULL,
`plane` int(11) NOT NULL,
`hint` varchar(500) NOT NULL,
`image` varchar(500) NOT NULL,
`added` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.points
CREATE TABLE IF NOT EXISTS `points` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`discord_id` bigint(20) NOT NULL,
`points` int(11) NOT NULL,
`total_points` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) NOT NULL,
`name` varchar(50) NOT NULL,
`has_colour` int(1) NOT NULL,
`role_colour` varchar(50) NOT NULL,
`display_separately` int(1) NOT NULL,
`mentionable_by_anyone` int(1) NOT NULL,
`give_on_points_requirement` int(1) NOT NULL,
`points_requirement` int(100) NOT NULL,
`give_on_current_points_requirement` int(1) NOT NULL,
`current_points_requirement` int(100) NOT NULL,
`give_to_points_leader` int(1) NOT NULL,
`give_to_ingame_status` int(1) NOT NULL,
`ingame_status` varchar(50) DEFAULT NULL,
`added` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.trivia
CREATE TABLE IF NOT EXISTS `trivia` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question` varchar(100) NOT NULL,
`answers` varchar(1000) NOT NULL,
`correct` int(1) NOT NULL,
`added` timestamp NOT NULL DEFAULT current_timestamp(),
`updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.verify
CREATE TABLE IF NOT EXISTS `verify` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`discord_id` bigint(20) NOT NULL,
`random` varchar(500) NOT NULL,
`expiry` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
-- Dumping structure for table discord.verify_server
CREATE TABLE IF NOT EXISTS `verify_server` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(12) NOT NULL,
`random` varchar(20) NOT NULL,
`expiry` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Data exporting was unselected.
/*!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 */;