INSERT INTO categories (name) VALUES ('电子产品'), ('图书'), ('服装'), ('食品');
INSERT INTO users (username, email, city, balance, is_vip) VALUES ('alice', 'alice@example.com', '北京', 5000.00, true), ('bob', 'bob@example.com', '上海', 1200.50, false), ('carol', 'carol@example.com', '北京', 800.00, true), ('dave', 'dave@example.com', '广州', 300.00, false), ('eve', 'eve@example.com', '上海', 15000.00, true), ('frank', 'frank@example.com', '深圳', 600.00, false), ('grace', 'grace@example.com', '北京', 2200.00, true), ('henry', 'henry@example.com', '广州', 450.00, false);
INSERT INTO products (name, category_id, price, stock) VALUES ('MacBook Pro 14', 1, 14999.00, 50), ('iPhone 15', 1, 6999.00, 200), ('AirPods Pro', 1, 1799.00, 500), ('深入理解计算机系统', 2, 139.00, 100), ('算法导论', 2, 128.00, 80), ('程序员的自我修养', 2, 89.00, 60), ('优衣库联名T恤', 3, 99.00, 1000), ('羽绒服', 3, 599.00, 200), ('坚果礼盒', 4, 168.00, 300), ('进口咖啡豆', 4, 88.00, 500);
INSERT INTO orders (user_id, total, status, created_at) VALUES (1, 16798.00, 'done', '2024-01-15 10:00:00+08'), (1, 1799.00, 'done', '2024-02-20 14:30:00+08'), (2, 6999.00, 'shipped', '2024-03-01 09:00:00+08'), (2, 228.00, 'done', '2024-03-10 16:00:00+08'), (3, 139.00, 'done', '2024-01-20 11:00:00+08'), (3, 14999.00, 'paid', '2024-04-01 08:00:00+08'), (4, 99.00, 'cancelled', '2024-02-14 12:00:00+08'), (4, 256.00, 'done', '2024-03-25 17:00:00+08'), (5, 22797.00, 'done', '2024-01-05 09:30:00+08'), (5, 267.00, 'done', '2024-02-28 15:00:00+08'), (6, 1799.00, 'pending', '2024-04-05 10:00:00+08'), (7, 7266.00, 'done', '2024-03-15 13:00:00+08'), (8, 168.00, 'done', '2024-03-20 14:00:00+08');
INSERT INTO order_items (order_id, product_id, quantity, unit_price) VALUES (1, 1, 1, 14999.00), (1, 3, 1, 1799.00), (2, 3, 1, 1799.00), (3, 2, 1, 6999.00), (4, 4, 1, 139.00), (4, 6, 1, 89.00), (5, 4, 1, 139.00), (6, 1, 1, 14999.00), (7, 7, 1, 99.00), (8, 9, 1, 168.00), (8, 10, 1, 88.00), (9, 1, 1, 14999.00), (9, 2, 1, 6999.00), (9, 3, 1, 1799.00), (10, 9, 1, 168.00), (10, 7, 1, 99.00), (11, 3, 1, 1799.00), (12, 2, 1, 6999.00), (12, 10, 2, 88.00), (12, 6, 1, 89.00), (13, 9, 1, 168.00);
INSERT INTO reviews (user_id, product_id, rating, content, created_at) VALUES (1, 1, 5, '性能强悍,开发利器', '2024-02-01 10:00:00+08'), (1, 3, 4, '降噪很好,通话一般', '2024-03-01 10:00:00+08'), (2, 2, 4, '手感不错,电池续航一般', '2024-03-15 10:00:00+08'), (2, 4, 5, '经典教材,常读常新', '2024-03-20 10:00:00+08'), (3, 4, 5, 'CSAPP 永远的神', '2024-02-01 10:00:00+08'), (5, 1, 5, '第二台了,稳定可靠', '2024-01-20 10:00:00+08'), (5, 2, 3, '发热有点严重', '2024-01-25 10:00:00+08'), (7, 2, 4, '总体满意', '2024-03-25 10:00:00+08'), (8, 9, 5, '送礼很合适', '2024-04-01 10:00:00+08'), (4, 9, 4, '性价比高', '2024-04-02 10:00:00+08');
|