Files
cattleTransportation/test_member_data.sql

32 lines
943 B
MySQL
Raw Normal View History

2025-10-13 17:19:47 +08:00
-- 插入测试的member数据
-- 首先插入租户数据
INSERT INTO sys_tenant (name, mobile, create_time, is_delete) VALUES
('测试租户1', '13800000001', NOW(), 0),
('测试租户2', '13800000002', NOW(), 0),
('测试租户3', '13800000003', NOW(), 0);
-- 插入member数据
INSERT INTO member (mobile, type, status, create_time, tenant_id) VALUES
-- 供应商 (type=2)
('13800001001', 2, 1, NOW(), 1),
('13800001002', 2, 1, NOW(), 1),
('13800001003', 2, 1, NOW(), 2),
-- 资金方 (type=3)
('13800002001', 3, 1, NOW(), 1),
('13800002002', 3, 1, NOW(), 2),
-- 采购商 (type=4)
('13800003001', 4, 1, NOW(), 1),
('13800003002', 4, 1, NOW(), 2),
('13800003003', 4, 1, NOW(), 3);
-- 插入member_user数据用户名信息
INSERT INTO member_user (member_id, username) VALUES
(1, '供应商A'),
(2, '供应商B'),
(3, '供应商C'),
(4, '资金方A'),
(5, '资金方B'),
(6, '采购商A'),
(7, '采购商B'),
(8, '采购商C');