-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
db.sql
159 lines (125 loc) · 3.78 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Erstellungszeit: 12. Feb 2022 um 18:48
-- Server-Version: 10.3.31-MariaDB-0+deb10u1
-- PHP-Version: 7.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Datenbank: `s4585_virty`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `cheat`
--
CREATE TABLE `cheat` (
`status` int(1) NOT NULL DEFAULT 0,
`version` float NOT NULL DEFAULT 0,
`maintenance` int(1) NOT NULL DEFAULT 0,
`motd` varchar(255) NOT NULL,
`apikey` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `logs` (
`id` int(11) NOT NULL,
`log_user` varchar(255) NOT NULL,
`log_action` varchar(255) NOT NULL,
`log_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Tabellenstruktur für Tabelle `invites`
--
CREATE TABLE `invites` (
`code` varchar(255) NOT NULL,
`createdBy` varchar(255) NOT NULL,
`createdAt` timestamp NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Tabellenstruktur für Tabelle `license`
--
CREATE TABLE `license` (
`code` varchar(255) NOT NULL,
`createdBy` varchar(255) NOT NULL,
`createdAt` timestamp NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Tabellenstruktur für Tabelle `subscription`
--
CREATE TABLE `subscription` (
`code` varchar(255) NOT NULL,
`createdBy` varchar(255) NOT NULL,
`createdAt` timestamp NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `users`
--
CREATE TABLE `users` (
`uid` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`hwid` varchar(255) DEFAULT NULL,
`admin` int(1) NOT NULL DEFAULT 0,
`reseller` 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(),
`dcid` varchar(255) NOT NULL,
`last_reset` int(11) NOT NULL,
`last_inv` int(11) NOT NULL,
`balance` int(11) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Indizes für die Tabelle `invites`
--
ALTER TABLE `invites`
ADD UNIQUE KEY `code` (`code`);
--
-- Indizes für die Tabelle `license`
--
ALTER TABLE `license`
ADD UNIQUE KEY `code` (`code`);
--
-- Indizes für die Tabelle `logs`
--
ALTER TABLE `logs`
ADD PRIMARY KEY (`id`);
--
-- Indizes für die Tabelle `subscription`
--
ALTER TABLE `subscription`
ADD UNIQUE KEY `code` (`code`);
--
-- Indizes für die Tabelle `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`uid`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `uid` (`uid`),
ADD UNIQUE KEY `hwid` (`hwid`);
--
-- AUTO_INCREMENT für exportierte Tabellen
--
--
-- AUTO_INCREMENT für Tabelle `logs`
--
ALTER TABLE `logs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=574;
--
-- AUTO_INCREMENT für Tabelle `users`
--
ALTER TABLE `users`
MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;