forked from znixbtw/php-panel-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDB.sql
53 lines (47 loc) · 1.79 KB
/
DB.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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
DROP TABLE IF EXISTS `cheat`;
CREATE TABLE IF NOT EXISTS `cheat` (
`status` int(1) NOT NULL DEFAULT 0,
`version` float NOT NULL DEFAULT 0,
`maintenance` int(1) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `invites`;
CREATE TABLE IF NOT EXISTS `invites` (
`code` varchar(255) NOT NULL,
`createdBy` varchar(255) NOT NULL,
`createdAt` timestamp NULL DEFAULT current_timestamp(),
UNIQUE KEY `code` (`code`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `subscription`;
CREATE TABLE IF NOT EXISTS `subscription` (
`code` varchar(255) NOT NULL,
`createdBy` varchar(255) NOT NULL,
`createdAt` timestamp NULL DEFAULT current_timestamp(),
UNIQUE KEY `code` (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`hwid` varchar(255) DEFAULT NULL,
`admin` int(1) NOT NULL DEFAULT 0,
`sub` date DEFAULT NULL,
`banned` int(1) NOT NULL DEFAULT 0,
`invitedBy` varchar(255) NOT NULL,
`createdAt` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`uid`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `uid` (`uid`),
UNIQUE KEY `hwid` (`hwid`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
COMMIT;
INSERT INTO `users` (`uid`, `username`, `password`, `hwid`, `admin`, `sub`,`banned`, `invitedBy`, `createdAt`) VALUES
(1, 'admin', '$2y$10$7wOzYc.AXpXc1nE/b0IqLOsP2w1cK9LZXDUi6hoSyuWBDj3DoBjOK', NULL, 1, '2020-10-29', 0, '', '2020-10-20 08:29:37');
COMMIT;
INSERT INTO `cheat` (`status`, `version`, `maintenance`) VALUES
(0, 1, 0);
COMMIT;