1 | insert into online_shop.customers (email, first_name, last_name, phone, delivery_address, password)
|
---|
2 | values
|
---|
3 | ('sanja.petrushevska@example.com', 'Сања', 'Петрушевска', '0771234567', 'Улица Орце Николов, Skopje', 'password123');
|
---|
4 |
|
---|
5 | insert into online_shop.categories (category_name)
|
---|
6 | values
|
---|
7 | ('Аксесоари'),
|
---|
8 | ('Обувки'),
|
---|
9 | ('Мајца');
|
---|
10 |
|
---|
11 | insert into online_shop.products (id_category, product_name, color, price, description)
|
---|
12 | values
|
---|
13 | (1, 'Часовник', 'Црн', 1599, 'Кожен часовник за рака'),
|
---|
14 | (2, 'Патики', 'Бели', 2599, 'Елегантни бели патики'),
|
---|
15 | (3, 'Мајца', 'Црна', 1900, 'Удобна памучна мајца');
|
---|
16 |
|
---|
17 | insert into online_shop.stock (id_product, size, quantity)
|
---|
18 | values
|
---|
19 | (1, 'Onesize', 1),
|
---|
20 | (2, '39', 1),
|
---|
21 | (3, 'M', 1);
|
---|
22 |
|
---|
23 | insert into online_shop.orders (id_customer, payment_method, status, delivery_price, total_price, invoice_code, order_date)
|
---|
24 | values
|
---|
25 | (1, 'Card', 'Completed', 1599, 1599 + 2599 + 1900, 'INV123456', '2024-12-22 14:30:00');
|
---|
26 |
|
---|
27 | insert into online_shop.delivery (id_order, delivery_address, status)
|
---|
28 | values
|
---|
29 | (1, 'Улица Орце Николов, Skopje', 'Shipped');
|
---|
30 |
|
---|
31 | insert into online_shop."contains" (id_order, id_stock, quantity, size, price)
|
---|
32 | values
|
---|
33 | (1, 1, 1, 'Onesize', 1599),
|
---|
34 | (1, 2, 1, '39', 2599),
|
---|
35 | (1, 3, 1, 'M', 1900);
|
---|
36 |
|
---|
37 |
|
---|