1 | insert into users (user_id, user_name, surname, email, username, user_password)
|
---|
2 | values (1, 'Dijana', 'Manceva', 'dijanamanceva@gmailcom', 'Dijana23', '123434' ),
|
---|
3 | (2, 'Evgenija', 'Nikolaevska', 'evgenijanikolaevska@gmailcom', 'Evgenija232', '3454565' ),
|
---|
4 | (3, 'Trajce', 'Najdovski', 'trajcenajdovski@gmailcom', 'Trajce12', '6565656' ),
|
---|
5 | (4, 'Marija', 'Maneska', 'marijamaneska@gmailcom', 'MarijaM232', 'asadsddsd' ),
|
---|
6 | (5, 'Natasa', 'Petreska', 'natasapetreska@gmailcom', 'NatasaP445', 'awewdddfdf' );
|
---|
7 |
|
---|
8 |
|
---|
9 | insert into roles(id_role, role_name, role_desc)
|
---|
10 | values(100, 'Manager','Responsible for managing employees and employee schedules, also in charge for budgeting'),
|
---|
11 | (200, 'Coordinator','Responsible for planning, managing profit and loss, handling cash at the store as well as collating daily sales'),
|
---|
12 | (300, 'Sales Associate','Responsible for maintaining the store’s clean and organized appearance, restocking items, and checking out customers'),
|
---|
13 | (400, 'Cashier','Responsible for processing purchases and transactions'),
|
---|
14 | (500, 'Visual Merchandiser','Their job is to help ensure the best products in your store are highlighted in strategic ways and in specific parts of your store'),
|
---|
15 | (600, 'Inventory Control Specialist','Responsible for preventing loss, tracking and maintaining inventory');
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 | insert into online_stores(store_id, names, web_address, phone_number, email, social_media)
|
---|
20 | values(11, 'Zara','www.zara.com','02 444 7894','zaraofficial@gmail.com','https://www.facebook.com/ZARACare'),
|
---|
21 | (22, 'Bershka','www.bershka.com','02 308 7912','bershkaofficial@yahoo.com','https://www.facebook.com/Bershka'),
|
---|
22 | (33, 'New Yorker','www.new-yorker.com','02 565 1123','newyorkerofficial@gmail.com','https://www.facebook.com/New-Yorker'),
|
---|
23 | (44, 'Stradivarius','www.stradivarius.com','02 333 7589','stradivariusofficial@gmail.com','https://www.facebook.com/StradivariusPage'),
|
---|
24 | (55, 'Pull & Bear','www.pullandbear.com','02 545 1122','pullandbear@yahoo.com','https://www.facebook.com/Pull&Bear' ),
|
---|
25 | (66, 'LC Waikiki','www.lc-waikiki.com','02 478 9869','lcwaikikipage@yahoo.com','https://www.facebook.com/LC-Waikiki');
|
---|
26 |
|
---|
27 |
|
---|
28 | insert into category(category_id, category_name)
|
---|
29 | values(1, 'special occasion clothes'),
|
---|
30 | (2, 'sport clothes'),
|
---|
31 | (3, 'ski clothes'),
|
---|
32 | (4, 'winter clothes'),
|
---|
33 | (5, 'fall clothes'),
|
---|
34 | (6, 'summer clothes');
|
---|
35 |
|
---|
36 | insert into client(client_number_id, user_id)
|
---|
37 | values(1, 1),
|
---|
38 | (2, 2),
|
---|
39 | (3, 3),
|
---|
40 | (4, 4),
|
---|
41 | (5, 5);
|
---|
42 |
|
---|
43 | insert into shipping_employee(shipping_employee_id, user_id)
|
---|
44 | values(1, 1),
|
---|
45 | (2, 2),
|
---|
46 | (3, 3),
|
---|
47 | (4, 4),
|
---|
48 | (5, 5);
|
---|
49 |
|
---|
50 | insert into store_employee(store_employee_id, store_id, user_id)
|
---|
51 | values(12, 11, 1),
|
---|
52 | (13, 22, 2),
|
---|
53 | (14, 33, 3);
|
---|
54 |
|
---|
55 | insert into works_as(id_role, user_id, works_from, works_to)
|
---|
56 | values(100, 1, '2013-05-12', now()),
|
---|
57 | (200, 2, '2014-02-01', now()),
|
---|
58 | (300, 3, '2012-04-02', now()),
|
---|
59 | (400, 4, '2018-06-10', now());
|
---|
60 |
|
---|
61 |
|
---|
62 | insert into catalogue(catalogue_id, catalogue_from, catalogue_to, type_, store_id)
|
---|
63 | values (1, '2021-10-29', '2022-02-10', 'winter', 11),
|
---|
64 | (2, '2022-02-11', '2022-04-30', 'spring', 22),
|
---|
65 | (3, '2022-05-01', '2022-08-15', 'summer', 33),
|
---|
66 | (4, '2022-08-16', '2022-10-28', 'autumn', 44);
|
---|
67 |
|
---|
68 | insert into product(product_id, names, in_store, sizes, color, category_id)
|
---|
69 | values (1, 'jeans', True, 'S', 'blue', 1),
|
---|
70 | (21, 'jacket', True, 'S', 'black', 1),
|
---|
71 | (2, 'tshirt', True, 'S', 'red', 1),
|
---|
72 | (3, 'coat', False, 'S', 'brown', 1),
|
---|
73 | (4, 'pants', True, 'S', 'black', 2 ),
|
---|
74 | (5, 'skirts', True, 'S', 'yellow', 3),
|
---|
75 | (6, 'shirt', true, 'S', 'green', 3),
|
---|
76 | (7, 'jeans', True, 'M', 'blue', 4),
|
---|
77 | (8, 'jacket', True, 'M', 'black', 5),
|
---|
78 | (9, 'tshirt', False, 'M', 'red', 4),
|
---|
79 | (10, 'coat', True, 'M', 'black', 4),
|
---|
80 | (11, 'pants', False, 'M', 'black', 5),
|
---|
81 | (12, 'skirts', True, 'M', 'yellow', 5),
|
---|
82 | (13, 'shirt', true, 'M', 'green', 1),
|
---|
83 | (14, 'jeans', True, 'L', 'black', 6),
|
---|
84 | (15,'jacket', True, 'L', 'black', 2),
|
---|
85 | (16, 'tshirt', True, 'L', 'red', 3),
|
---|
86 | (17, 'coat', False, 'L', 'brown', 4),
|
---|
87 | (18, 'pants', True, 'L', 'black', 5),
|
---|
88 | (19, 'skirts', True, 'L', 'yellow', 6),
|
---|
89 | (20, 'shirt', true, 'L', 'black', 1);
|
---|
90 |
|
---|
91 | insert into product_in_store(product_in_store_id, store_id, product_id)
|
---|
92 | values(1, 11, 1),
|
---|
93 | (2, 22, 2),
|
---|
94 | (3, 33, 3),
|
---|
95 | (4, 44, 4);
|
---|
96 |
|
---|
97 | insert into existss(product_in_store_id, catalogue_id, store_id)
|
---|
98 | values(1, 1, 11),
|
---|
99 | (2, 2, 22),
|
---|
100 | (3, 3, 33),
|
---|
101 | (4, 4, 44);
|
---|
102 |
|
---|
103 | insert into price(price_id, price, price_from, price_to, product_in_store_id)
|
---|
104 | values (1, 500, '2021-10-29', '2022-02-10', 1),
|
---|
105 | (2, 700, '2022-02-11', '2022-04-30', 2),
|
---|
106 | (3, 800,'2022-05-01', '2022-08-15', 3),
|
---|
107 | (4, 900, '2022-08-16', '2022-10-28', 4),
|
---|
108 | (5, 300, '2022-12-18', '2022-12-18', 1);
|
---|
109 |
|
---|
110 | insert into shopping_bag(shopping_id, order_date, shipping_date, modified, user_id)
|
---|
111 | values (1, now(), now()+interval'3 days', now(), 1),
|
---|
112 | (2, now(), now()+interval'3 days', now(), 3),
|
---|
113 | (3, now(), now()+interval'3 days', now(), 2),
|
---|
114 | (4, now(), now()+interval'3 days', now(), 4);
|
---|
115 |
|
---|
116 | insert into shipping(shipping_id, locations, date_from, date_to, user_id, shopping_id)
|
---|
117 | values(1, 'Kavadarci',now(),now()+interval'7 days', 1, 1),
|
---|
118 | (2, 'Skopje',now(),now()+interval'7 days', 2, 2),
|
---|
119 | (3, 'Skopje',now(),now()+interval'7 days', 3, 3),
|
---|
120 | (4, 'Veles',now(),now()+interval'7 days', 4, 4),
|
---|
121 | (5, 'Bitola',now(),now()+interval'7 days', 5, 4);
|
---|
122 |
|
---|
123 | insert into orders(amount, shopping_id, product_in_store_id, price_id)
|
---|
124 | values(3, 1, 1, 1),
|
---|
125 | (7, 2, 2, 2),
|
---|
126 | (10, 2, 3, 3),
|
---|
127 | (4, 1, 4, 4);
|
---|
128 |
|
---|
129 | select * from orders
|
---|
130 |
|
---|
131 | insert into project.payment(payment_id, info, shopping_id)
|
---|
132 | values(5, 'Paypal', 4),
|
---|
133 | (4, 'Visa', 3),
|
---|
134 | (3, 'MasterCard', 2),
|
---|
135 | (2, 'WesternUnion', 1),
|
---|
136 | (1, 'Zelle', 1);
|
---|
137 |
|
---|