-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbd.sql
More file actions
43 lines (39 loc) · 1.24 KB
/
bd.sql
File metadata and controls
43 lines (39 loc) · 1.24 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
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`description` text NOT NULL,
`text` text NOT NULL,
`createdate` DATE NOT NULL DEFAULT (curdate()),
PRIMARY KEY (`id`));
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`email` varchar(45) NOT NULL,
`perm` int(11) NOT NULL DEFAULT 0,
`vmoney` decimal(12,2) DEFAULT 0.00,
`money` decimal(12,2) DEFAULT 0.00,
`regdate` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`));
CREATE TABLE IF NOT EXISTS `servers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NULL,
`version` VARCHAR(45) NULL,
`pvp` TINYINT NULL,
`vipedate` DATE NULL,
`size` VARCHAR(45) NULL,
`mods` TEXT NULL,
`description` TEXT NULL,
`host` VARCHAR(45) NULL,
`port` VARCHAR(45) NULL,
`rcon_port` VARCHAR(45) NULL,
`rcon_password` VARCHAR(45) NULL,
`visibility` TINYINT NULL,
PRIMARY KEY (`id`));
CREATE TABLE IF NOT EXISTS `constants` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`description` text NOT NULL,
`text` text NOT NULL,
`createdate` DATE NOT NULL DEFAULT (curdate()),
PRIMARY KEY (`id`));