-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSeeder.sql
More file actions
63 lines (58 loc) · 3.59 KB
/
Copy pathSeeder.sql
File metadata and controls
63 lines (58 loc) · 3.59 KB
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
CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL
);
CREATE TABLE IF NOT EXISTS products (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
description TEXT NOT NULL,
price DECIMAL(10, 2) NOT NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL
);
INSERT INTO users (name, email, password, created_at, updated_at) VALUES
('John Doe', '[email protected]', 'hashed_password_1', NOW(), NOW()),
('Jane Smith', '[email protected]', 'hashed_password_2', NOW(), NOW()),
('Alice Johnson', '[email protected]', 'hashed_password_3', NOW(), NOW()),
('Bob Brown', '[email protected]', 'hashed_password_4', NOW(), NOW()),
('Charlie Davis', '[email protected]', 'hashed_password_5', NOW(), NOW()),
('Emily White', '[email protected]', 'hashed_password_6', NOW(), NOW()),
('Daniel Green', '[email protected]', 'hashed_password_7', NOW(), NOW()),
('Grace Lee', '[email protected]', 'hashed_password_8', NOW(), NOW()),
('Henry Martin', '[email protected]', 'hashed_password_9', NOW(), NOW()),
('Isabelle Scott', '[email protected]', 'hashed_password_10', NOW(), NOW()),
('Jake Williams', '[email protected]', 'hashed_password_11', NOW(), NOW()),
('Kelly Adams', '[email protected]', 'hashed_password_12', NOW(), NOW()),
('Liam Thompson', '[email protected]', 'hashed_password_13', NOW(), NOW()),
('Mia Robinson', '[email protected]', 'hashed_password_14', NOW(), NOW()),
('Nathan Walker', '[email protected]', 'hashed_password_15', NOW(), NOW()),
('Olivia Hernandez', '[email protected]', 'hashed_password_16', NOW(), NOW()),
('Peter Ramirez', '[email protected]', 'hashed_password_17', NOW(), NOW()),
('Sophia Torres', '[email protected]', 'hashed_password_18', NOW(), NOW()),
('Thomas Jenkins', '[email protected]', 'hashed_password_19', NOW(), NOW()),
('Victoria Evans', '[email protected]', 'hashed_password_20', NOW(), NOW());
INSERT INTO products (name, description, price, created_at, updated_at) VALUES
('Laptop', 'High-performance laptop', 1200.50, NOW(), NOW()),
('Smartphone', 'Latest smartphone with great features', 800.99, NOW(), NOW()),
('Tablet', 'Lightweight tablet with high-resolution display', 450.00, NOW(), NOW()),
('Smartwatch', 'Wearable smartwatch with health tracking', 299.99, NOW(), NOW()),
('Wireless Headphones', 'Noise-canceling wireless headphones', 199.99, NOW(), NOW()),
('Gaming Console', 'Next-gen gaming console', 499.99, NOW(), NOW()),
('Mechanical Keyboard', 'RGB mechanical keyboard', 149.99, NOW(), NOW()),
('Monitor', '4K ultra-wide monitor', 349.99, NOW(), NOW()),
('External Hard Drive', '2TB external hard drive', 129.99, NOW(), NOW()),
('Bluetooth Speaker', 'Portable Bluetooth speaker with deep bass', 99.99, NOW(), NOW()),
('VR Headset', 'Virtual reality headset with motion tracking', 599.99, NOW(), NOW()),
('Camera', 'Professional-grade DSLR camera', 899.99, NOW(), NOW()),
('Drone', 'Quadcopter drone with HD camera', 799.99, NOW(), NOW()),
('Fitness Tracker', 'Activity tracker with heart rate monitoring', 149.99, NOW(), NOW()),
('Wireless Mouse', 'Ergonomic wireless mouse', 49.99, NOW(), NOW()),
('Power Bank', 'High-capacity power bank', 79.99, NOW(), NOW()),
('Smart TV', 'Ultra-HD Smart TV with streaming apps', 999.99, NOW(), NOW()),
('Electric Scooter', 'Lightweight electric scooter', 450.00, NOW(), NOW()),
('Gaming Chair', 'Ergonomic gaming chair with lumbar support', 250.00, NOW(), NOW()),
('Microphone', 'Studio-quality condenser microphone', 199.99, NOW(), NOW());