-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_export.sql
129 lines (103 loc) · 3.95 KB
/
db_export.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
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Време на генериране: 25 ное 2024 в 21:08
-- Версия на сървъра: 10.4.27-MariaDB
-- Версия на PHP: 8.2.0
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 */;
--
-- База данни: `laptops`
--
-- --------------------------------------------------------
--
-- Структура на таблица `favorite_products_users`
--
CREATE TABLE `favorite_products_users` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Структура на таблица `products`
--
CREATE TABLE `products` (
`id` int(11) NOT NULL COMMENT 'Първичен ключ',
`title` varchar(255) NOT NULL,
`image` varchar(255) NOT NULL,
`price` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Схема на данните от таблица `products`
--
INSERT INTO `products` (`id`, `title`, `image`, `price`) VALUES
(4, 'Lenovo ThinkPad X1 Carbon 123', 'https://cdn.izotcomputers.com/8270-large_default/laptop-vtora-upotreba-lenovo-thinkpad-x1-carbon-gen-9.jpg', '1499.99'),
(5, 'Asus ZenBook 13', 'https://laptop.bg/system/images/300015/normal/asus_zenbook_13_oled_ux325eaoledwb503r.jpg', '899.99'),
(6, 'Microsoft Surface Laptop 4', 'https://gfx3.senetic.com/akeneo-catalog/7/1/b/9/71b955b8b0f63a78a44c1a6a845adbf09e281afc_1684023_LDH_00031_image1.jpg', '999.99'),
(7, 'Acer Swift 3', 'https://ardes.bg/uploads/p/acer-swift-3-sf314-43-432825.jpg', '699.99'),
(8, 'Razor Blade 15', 'https://ardes.bg/uploads/original/razer-blade-15-rz09-0421-428703.jpg', '1599.99'),
(16, 'Нов продукт редактиран2', '1732556774_dell-xps-13-plus-9320-393691.jpg', '2200.99');
-- --------------------------------------------------------
--
-- Структура на таблица `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`names` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Схема на данните от таблица `users`
--
INSERT INTO `users` (`id`, `names`, `email`, `password`) VALUES
(6, 'Симеон', 'simeon@abv.bg', '$argon2i$v=19$m=65536,t=4,p=1$QndnNTB3b0RmdUhTV2VVZQ$QfKHIMfaObI+KUoAMDhyxVKnxTQ3QvMBD+YYvy3Niks'),
(16, 'simeon', 'simeon2@abv.bg', '$argon2i$v=19$m=65536,t=4,p=1$YVVlU2x1b1dXVExaMmxiZQ$mlrDv6NwGJy10RN/uSLUjcko12TCTRg/Qvg0LaHVUSk');
--
-- Indexes for dumped tables
--
--
-- Индекси за таблица `favorite_products_users`
--
ALTER TABLE `favorite_products_users`
ADD PRIMARY KEY (`id`);
--
-- Индекси за таблица `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Индекси за таблица `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `favorite_products_users`
--
ALTER TABLE `favorite_products_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Първичен ключ', AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
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 */;