-
Notifications
You must be signed in to change notification settings - Fork 2
/
EggPanel.sql
73 lines (59 loc) · 1.86 KB
/
EggPanel.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
-- EggPanel Database Creation Script
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
-- Change the following three names to change the database name
--
-- Database: `eggpanel`
--
CREATE DATABASE IF NOT EXISTS `eggpanel` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `eggpanel`;
-- --------------------------------------------------------
--
-- Table structure for table `actions`
--
CREATE TABLE `actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bot_id` int(11) NOT NULL,
`command` varchar(255) NOT NULL,
`arguments` varchar(255) DEFAULT NULL,
`timestamp` int(11) NOT NULL,
`executed` tinyint(1) NOT NULL,
`pickup` int(11) DEFAULT NULL,
`success` tinyint(1) DEFAULT NULL,
`message` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
-- --------------------------------------------------------
--
-- Table structure for table `bots`
--
CREATE TABLE `bots` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL,
`active` tinyint(1) NOT NULL,
`key_hash` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Table structure for table `requests`
--
CREATE TABLE `requests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bot_id` int(11) NOT NULL,
`last` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`password_hash` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`token_hash` text NOT NULL,
`verified` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;