-
Notifications
You must be signed in to change notification settings - Fork 7
/
database.sql
228 lines (190 loc) · 5.41 KB
/
database.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Czas generowania: 14 Sie 2017, 20:46
-- Wersja serwera: 10.1.22-MariaDB
-- Wersja PHP: 7.1.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
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 */;
--
-- Baza danych: `testvmcs`
--
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_logs`
--
CREATE TABLE `vmcs_logs` (
`id` int(11) NOT NULL,
`user` varchar(255) NOT NULL,
`section` varchar(255) NOT NULL,
`details` varchar(255) NOT NULL,
`date` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_news`
--
CREATE TABLE `vmcs_news` (
`id` int(11) NOT NULL,
`image` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`date` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_purchases`
--
CREATE TABLE `vmcs_purchases` (
`id` int(11) NOT NULL,
`buyer` varchar(255) NOT NULL,
`service` int(11) NOT NULL,
`server` int(11) NOT NULL,
`method` varchar(255) NOT NULL,
`info` varchar(255) DEFAULT NULL,
`profit` varchar(255) NOT NULL,
`date` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_servers`
--
CREATE TABLE `vmcs_servers` (
`id` int(11) NOT NULL,
`name` varchar(64) NOT NULL,
`ip` varchar(16) NOT NULL,
`query_port` int(11) NOT NULL,
`rcon_port` int(11) NOT NULL,
`rcon_pass` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_services`
--
CREATE TABLE `vmcs_services` (
`id` int(11) NOT NULL,
`server` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`image` varchar(255) NOT NULL,
`sms_channel` varchar(64) DEFAULT NULL,
`sms_channel_id` int(11) DEFAULT NULL,
`sms_number` int(11) DEFAULT NULL,
`paypal_cost` int(11) DEFAULT NULL,
`commands` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_users`
--
CREATE TABLE `vmcs_users` (
`id` int(11) NOT NULL,
`name` varchar(36) NOT NULL,
`password` varchar(255) NOT NULL,
`avatar` text,
`lastIP` varchar(36) DEFAULT NULL,
`lastLogin` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Zrzut danych tabeli `vmcs_users`
--
INSERT INTO `vmcs_users` (`id`, `name`, `password`, `avatar`, `lastIP`, `lastLogin`) VALUES
(1, 'Admin', '$2a$06$uPqQWGrapIYjZl3wSfxecuFbut/RiNKlCkvku6skzgWe4uTgjwOKW', 'https://vmcshop.pro/assets/images/avatars/76a1582a3f8d625ae4b5b8ca22e36f91.png', '127.0.0.1', '1502732862');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `vmcs_vouchers`
--
CREATE TABLE `vmcs_vouchers` (
`id` int(11) NOT NULL,
`service` int(11) NOT NULL,
`code` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indeksy dla zrzutów tabel
--
--
-- Indexes for table `vmcs_logs`
--
ALTER TABLE `vmcs_logs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `vmcs_news`
--
ALTER TABLE `vmcs_news`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `news_id_uindex` (`id`);
--
-- Indexes for table `vmcs_purchases`
--
ALTER TABLE `vmcs_purchases`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `purchases_id_uindex` (`id`);
--
-- Indexes for table `vmcs_servers`
--
ALTER TABLE `vmcs_servers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `vmcs_services`
--
ALTER TABLE `vmcs_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `vmcs_users`
--
ALTER TABLE `vmcs_users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `vmcs_vouchers`
--
ALTER TABLE `vmcs_vouchers`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT dla tabeli `vmcs_logs`
--
ALTER TABLE `vmcs_logs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT dla tabeli `vmcs_news`
--
ALTER TABLE `vmcs_news`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT dla tabeli `vmcs_purchases`
--
ALTER TABLE `vmcs_purchases`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;
--
-- AUTO_INCREMENT dla tabeli `vmcs_servers`
--
ALTER TABLE `vmcs_servers`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT dla tabeli `vmcs_services`
--
ALTER TABLE `vmcs_services`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT dla tabeli `vmcs_users`
--
ALTER TABLE `vmcs_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT dla tabeli `vmcs_vouchers`
--
ALTER TABLE `vmcs_vouchers`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;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 */;