-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrgovina_retro_rpa (1).sql
149 lines (121 loc) · 3.55 KB
/
trgovina_retro_rpa (1).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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 23, 2024 at 04:54 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30
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 */;
--
-- Database: `trgovina_retro_rpa`
--
-- --------------------------------------------------------
--
-- Table structure for table `artikli`
--
CREATE TABLE `artikli` (
`id` int(11) NOT NULL,
`ime` varchar(255) DEFAULT NULL,
`cena` decimal(10,2) DEFAULT NULL,
`zaloga` int(11) DEFAULT NULL,
`kategorija_id` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `artikli`
--
INSERT INTO `artikli` (`id`, `ime`, `cena`, `zaloga`, `kategorija_id`) VALUES
(1, 'PlayStation 3', 150.00, 1, 'konzola'),
(2, 'PlayStation DualShock 2', 39.99, 50, 'kotroler'),
(3, 'Xbox 360', 299.99, 20, 'konzole'),
(4, 'JLab Rewind', 49.99, 30, 'pripomocki'),
(5, 'PlayStation 5', 399.00, 15, 'konzola'),
(6, 'Logitech F310', 29.99, 25, 'kotroler'),
(8, 'Logitech G502', 40.00, 1, 'miska'),
(9, 'test', 69.00, 420, 'igra'),
(10, 'Asus NB', 999.00, 2, 'prenosnik');
-- --------------------------------------------------------
--
-- Table structure for table `uporabnik`
--
CREATE TABLE `uporabnik` (
`id` int(11) NOT NULL,
`uporabnisko_ime` varchar(255) DEFAULT NULL,
`geslo` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `uporabnik`
--
INSERT INTO `uporabnik` (`id`, `uporabnisko_ime`, `geslo`) VALUES
(1, 'aljaz', 'aljaz'),
(2, 'nino', 'nino'),
(3, 'flisar', 'flisar'),
(4, 'peytro', 'aqua');
-- --------------------------------------------------------
--
-- Table structure for table `zapisi`
--
CREATE TABLE `zapisi` (
`id` int(11) NOT NULL,
`uporabnik` varchar(255) DEFAULT NULL,
`cas_vpisa` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `zapisi`
--
INSERT INTO `zapisi` (`id`, `uporabnik`, `cas_vpisa`) VALUES
(1, 'aljaz', '2024-02-02 17:27:54'),
(2, 'flisar', '2024-02-02 17:27:54'),
(3, 'nino', '2024-02-02 17:27:54'),
(4, 'aljaz', '2024-02-02 17:43:22'),
(5, 'peytro', '2024-02-02 17:47:25'),
(6, 'peytro', '2024-02-02 17:48:09'),
(7, 'peytro', '2024-02-02 17:50:32'),
(8, 'aljaz', '2024-02-02 17:54:53'),
(9, 'nino', '2024-02-02 17:57:39');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `artikli`
--
ALTER TABLE `artikli`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `uporabnik`
--
ALTER TABLE `uporabnik`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `zapisi`
--
ALTER TABLE `zapisi`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `artikli`
--
ALTER TABLE `artikli`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `uporabnik`
--
ALTER TABLE `uporabnik`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `zapisi`
--
ALTER TABLE `zapisi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
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 */;