This repository has been archived by the owner on May 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathzombieoutbreak.sql
65 lines (56 loc) · 2.14 KB
/
zombieoutbreak.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
CREATE DATABASE IF NOT EXISTS `zombieoutbreak`;
USE `zombieoutbreak`;
CREATE TABLE `users` (
`ID` INT NOT NULL AUTO_INCREMENT,
`Identifier` VARCHAR(50) NOT NULL,
`Nickname` TINYTEXT NULL DEFAULT NULL,
`Name` TINYTEXT NULL DEFAULT NULL,
`Date Of Birth` VARCHAR(10) NULL DEFAULT NULL,
`Sex` VARCHAR(12) NULL DEFAULT NULL,
`Level` INT(11) NOT NULL DEFAULT '1',
`Occupation` VARCHAR(50) NULL DEFAULT NULL,
`Skills` LONGTEXT NULL DEFAULT NULL,
`Group` VARCHAR(50) NULL DEFAULT NULL,
`Faction` VARCHAR(50) NULL DEFAULT NULL,
`Money` LONGTEXT NULL DEFAULT NULL,
`Inventory` LONGTEXT NOT NULL DEFAULT '{}',
`Skin` LONGTEXT NULL DEFAULT NULL,
`Position` LONGTEXT NULL DEFAULT NULL,
PRIMARY KEY (`ID`)
);
CREATE TABLE `items` (
`Name` VARCHAR(50) NOT NULL,
`Label` VARCHAR(50) NOT NULL,
`Description` TEXT(65535) NULL DEFAULT 'No Description.',
`Weight` FLOAT(12) NOT NULL DEFAULT '0',
`Limit` INT(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`Name`)
);
CREATE TABLE `clothes` (
`Name` VARCHAR(50) NOT NULL,
`Label` VARCHAR(50) NOT NULL,
`Description` TEXT(65535) NOT NULL DEFAULT 'No description.',
`Weight` FLOAT(12) NOT NULL DEFAULT '0',
`Limit` INT(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`Name`)
);
INSERT INTO `clothes` VALUES
('unemployedtshirt', 'Unemployed T-shirt', 'No description.', 0.2, 1),
('unemployedpants', 'Unemployed Pants', 'No description.', 0.4, 1),
('unemployedshoes', 'Unemployed Shoes', 'No description.', 0.3, 1),
('policehat', 'Police Hat', 'No description.', 0.1, 1),
('policetshirt', 'Police T-shirt', 'No description.', 0.3, 1),
('policepants', 'Police Pants', 'No description.', 0.4, 1),
('policeshoes', 'Police Shoes', 'No description.', 0.3, 1),
('paramedichat', 'Paramedic Hat', 'No description.', 0.1, 1),
('paramedictshirt', 'Paramedic T-shirt', 'No description.', 0.2, 1),
('paramedicpants', 'Paramedic Pants', 'No description.', 0.4, 1),
('paramedicshoes', 'Paramedic Shoes', 'No description.', 0.3, 1)
;
CREATE TABLE `weapons` (
`Name` VARCHAR(50) NOT NULL,
`Label` VARCHAR(50) NOT NULL,
`Description` TEXT(65535) NOT NULL DEFAULT 'No description.',
`Weight` FLOAT(12) NOT NULL DEFAULT '0',
PRIMARY KEY (`Name`)
);