-
Notifications
You must be signed in to change notification settings - Fork 1
/
dataDB.sql
29 lines (24 loc) · 1.42 KB
/
dataDB.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
-- Inserting sample data into users table
INSERT INTO users (email, password, styles) VALUES
('[email protected]', 'alicePass123', ARRAY['casual', 'streetwear']),
('[email protected]', 'bobPass123', ARRAY['formal', 'business']);
-- Inserting sample data into products table
INSERT INTO products (description, title, gender, styles, img_url, color, material, size_clothing, pattern, email) VALUES
('Comfortable and trendy streetwear hoodie', 'Street Hoodie', 'unisex', ARRAY['streetwear', 'casual'], 'http://example.com/hoodie.jpg', 'black', 'cotton', 'L', 'plain', '[email protected]'),
('Formal business suit for professional settings', 'Business Suit', 'male', ARRAY['formal', 'business'], 'http://example.com/suit.jpg', 'navy', 'wool', '40', 'solid', '[email protected]');
-- Inserting sample data into cart table
INSERT INTO cart (email, product_id, quantity) VALUES
('[email protected]', 1, 1),
('[email protected]', 2, 1);
-- Inserting sample data into explore table
INSERT INTO explore (id) VALUES
(1),
(2);
-- Inserting sample data into selling table
INSERT INTO selling (email, product_id, quantity, price) VALUES
('[email protected]', 1, 10, 50),
('[email protected]', 2, 5, 150);
-- Inserting sample data into sold table
INSERT INTO sold (buyer_email, seller_email, date_sold, product_id, quantity) VALUES
('[email protected]', '[email protected]', '2023-12-05 09:00:00', 1, 1),
('[email protected]', '[email protected]', '2023-12-06 15:30:00', 2, 1);