This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maniapp.sql
99 lines (83 loc) · 2.87 KB
/
maniapp.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
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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `maniapp`
--
-- --------------------------------------------------------
--
-- Tablestructure for table `karma`
--
CREATE TABLE IF NOT EXISTS `karma` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`MapId` mediumint(9) NOT NULL DEFAULT '0',
`PlayerId` mediumint(9) NOT NULL DEFAULT '0',
`Score` tinyint(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`Id`),
UNIQUE KEY `PlayerId` (`PlayerId`,`MapId`),
KEY `MapId` (`MapId`),
KEY `Score` (`Score`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
-- --------------------------------------------------------
--
-- Tablestructure for table `maps`
--
CREATE TABLE IF NOT EXISTS `maps` (
`Id` mediumint(9) NOT NULL AUTO_INCREMENT,
`Uid` varchar(27) NOT NULL DEFAULT '',
`Name` varchar(100) NOT NULL DEFAULT '',
`Author` varchar(30) NOT NULL DEFAULT '',
`Environment` varchar(10) NOT NULL DEFAULT '',
`RoundsJuke` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`Id`),
UNIQUE KEY `Uid` (`Uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
-- --------------------------------------------------------
--
-- Tablestructure for table `players`
--
CREATE TABLE IF NOT EXISTS `players` (
`Id` mediumint(9) NOT NULL AUTO_INCREMENT,
`Login` varchar(50) NOT NULL DEFAULT '',
`NickName` varchar(100) DEFAULT NULL,
`Nation` varchar(150) NOT NULL DEFAULT '',
`UpdatedAt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Wins` mediumint(9) NOT NULL DEFAULT '0',
`TimePlayed` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`Id`),
UNIQUE KEY `Login` (`Login`),
KEY `Nation` (`Nation`),
KEY `Wins` (`Wins`),
KEY `UpdatedAt` (`UpdatedAt`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
-- --------------------------------------------------------
--
-- Tablestructure for table `records`
--
CREATE TABLE IF NOT EXISTS `records` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`MapId` mediumint(9) NOT NULL DEFAULT '0',
`PlayerId` mediumint(9) NOT NULL DEFAULT '0',
`Score` int(11) NOT NULL DEFAULT '0',
`Date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Checkpoints` text NOT NULL,
PRIMARY KEY (`Id`),
UNIQUE KEY `PlayerId` (`PlayerId`,`MapId`),
KEY `MapId` (`MapId`),
KEY `Score` (`Score`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
-- --------------------------------------------------------
--
-- Tablestructure for table `times`
--
CREATE TABLE IF NOT EXISTS `times` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`MapId` mediumint(9) NOT NULL DEFAULT '0',
`PlayerId` mediumint(9) NOT NULL DEFAULT '0',
`Score` int(11) NOT NULL DEFAULT '0',
`Date` int(10) unsigned NOT NULL DEFAULT '0',
`Checkpoints` text NOT NULL,
PRIMARY KEY (`Id`),
KEY `PlayerId` (`PlayerId`,`MapId`),
KEY `MapId` (`MapId`),
KEY `Score` (`Score`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;