-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgamerpg.sql
143 lines (116 loc) · 3.41 KB
/
gamerpg.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
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Czas generowania: 29 Cze 2020, 03:24
-- Wersja serwera: 10.4.11-MariaDB
-- Wersja PHP: 7.4.5
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 */;
--
-- Baza danych: `gamerpg`
--
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `heroe`
--
CREATE TABLE `heroe` (
`idHeroe` int(10) UNSIGNED NOT NULL,
`class_heroe` int(10) UNSIGNED NOT NULL,
`name` varchar(20) NOT NULL,
`level` int(10) UNSIGNED NOT NULL,
`exp` int(10) UNSIGNED NOT NULL,
`money` int(10) UNSIGNED NOT NULL,
`health` int(10) UNSIGNED NOT NULL,
`strength` int(10) UNSIGNED NOT NULL,
`dexterity` int(10) UNSIGNED NOT NULL,
`magic` int(10) UNSIGNED NOT NULL,
`defence` int(10) UNSIGNED NOT NULL,
`luck` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Zrzut danych tabeli `heroe`
--
INSERT INTO `heroe` (`idHeroe`, `class_heroe`, `name`, `level`, `exp`, `money`, `health`, `strength`, `dexterity`, `magic`, `defence`, `luck`) VALUES
(1, 1, 'PostacAdmina', 5, 3210, 88, 800, 20, 10, 0, 15, 10),
(2, 2, 'Ala', 5, 250, 5, 400, 5, 20, 5, 10, 10),
(7, 3, 'maciej', 1, 371, 62, 100, 1, 1, 10, 10, 1),
(8, 2, 'pro', 1, 1, 0, 100, 10, 1, 1, 10, 1),
(13, 1, 'qqq', 1, 11, 15, 100, 1, 10, 1, 10, 1),
(18, 2, 'ala ma psa', 1, 1, 10, 100, 10, 1, 1, 10, 1);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `heroes`
--
CREATE TABLE `heroes` (
`Users_idUsers` int(10) UNSIGNED NOT NULL,
`idHeroes` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Zrzut danych tabeli `heroes`
--
INSERT INTO `heroes` (`Users_idUsers`, `idHeroes`) VALUES
(1, 1),
(1, 2),
(7, 7),
(6, 8),
(6, 13),
(1, 18);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `users`
--
CREATE TABLE `users` (
`idUsers` int(10) UNSIGNED NOT NULL,
`login` varchar(45) NOT NULL,
`passwd` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Zrzut danych tabeli `users`
--
INSERT INTO `users` (`idUsers`, `login`, `passwd`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3'),
(5, '123 ', '202cb962ac59075b964b07152d234b70'),
(6, 'aa', '3691308f2a4c2f6983f2880d32e29c84'),
(7, 'maciek', 'e10adc3949ba59abbe56e057f20f883e');
--
-- Indeksy dla zrzutów tabel
--
--
-- Indeksy dla tabeli `heroe`
--
ALTER TABLE `heroe`
ADD PRIMARY KEY (`idHeroe`);
--
-- Indeksy dla tabeli `heroes`
--
ALTER TABLE `heroes`
ADD KEY `Heroes_FKIndex1` (`Users_idUsers`);
--
-- Indeksy dla tabeli `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`idUsers`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT dla tabeli `heroe`
--
ALTER TABLE `heroe`
MODIFY `idHeroe` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT dla tabeli `users`
--
ALTER TABLE `users`
MODIFY `idUsers` int(10) UNSIGNED 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 */;