-- 服务分类二级分类测试数据
-- 清理现有数据
TRUNCATE TABLE service_cate;

-- 插入一级分类
INSERT INTO service_cate (id, title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
(1, '空调维修', '', 1, 1, 0, 1, 0, NOW(), NOW()),
(2, '家电清洗', '', 2, 1, 0, 1, 0, NOW(), NOW()),
(3, '管道疏通', '', 3, 1, 0, 1, 0, NOW(), NOW()),
(4, '墙面维护', '', 4, 1, 0, 1, 0, NOW(), NOW()),
(5, '专业美缝', '', 5, 1, 0, 1, 0, NOW(), NOW()),
(6, '窗帘软装', '', 6, 1, 0, 1, 0, NOW(), NOW()),
(7, '全屋定制', '', 7, 1, 0, 1, 0, NOW(), NOW()),
(8, '家居安装', '', 8, 1, 0, 1, 0, NOW(), NOW());

-- 插入二级分类
-- 空调维修的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('挂式空调维修', '', 1, 1, 0, 2, 1, NOW(), NOW()),
('立式空调维修', '', 2, 1, 0, 2, 1, NOW(), NOW()),
('中央空调维修', '', 3, 1, 0, 2, 1, NOW(), NOW()),
('空调移机', '', 4, 1, 0, 2, 1, NOW(), NOW()),
('空调加氟', '', 5, 1, 0, 2, 1, NOW(), NOW());

-- 家电清洗的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('油烟机清洗', '', 1, 1, 0, 2, 2, NOW(), NOW()),
('冰箱清洗', '', 2, 1, 0, 2, 2, NOW(), NOW()),
('洗衣机清洗', '', 3, 1, 0, 2, 2, NOW(), NOW()),
('热水器清洗', '', 4, 1, 0, 2, 2, NOW(), NOW()),
('空调清洗', '', 5, 1, 0, 2, 2, NOW(), NOW());

-- 管道疏通的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('下水道疏通', '', 1, 1, 0, 2, 3, NOW(), NOW()),
('马桶疏通', '', 2, 1, 0, 2, 3, NOW(), NOW()),
('地漏疏通', '', 3, 1, 0, 2, 3, NOW(), NOW()),
('厨房管道疏通', '', 4, 1, 0, 2, 3, NOW(), NOW()),
('卫生间管道疏通', '', 5, 1, 0, 2, 3, NOW(), NOW());

-- 墙面维护的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('墙面刷漆', '', 1, 1, 0, 2, 4, NOW(), NOW()),
('墙纸更换', '', 2, 1, 0, 2, 4, NOW(), NOW()),
('墙面修补', '', 3, 1, 0, 2, 4, NOW(), NOW()),
('墙面防水', '', 4, 1, 0, 2, 4, NOW(), NOW());

-- 专业美缝的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('瓷砖美缝', '', 1, 1, 0, 2, 5, NOW(), NOW()),
('地砖美缝', '', 2, 1, 0, 2, 5, NOW(), NOW()),
('墙砖美缝', '', 3, 1, 0, 2, 5, NOW(), NOW()),
('防水美缝', '', 4, 1, 0, 2, 5, NOW(), NOW());

-- 窗帘软装的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('窗帘安装', '', 1, 1, 0, 2, 6, NOW(), NOW()),
('百叶窗安装', '', 2, 1, 0, 2, 6, NOW(), NOW()),
('窗帘清洗', '', 3, 1, 0, 2, 6, NOW(), NOW()),
('窗帘维修', '', 4, 1, 0, 2, 6, NOW(), NOW());

-- 全屋定制的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('衣柜定制', '', 1, 1, 0, 2, 7, NOW(), NOW()),
('橱柜定制', '', 2, 1, 0, 2, 7, NOW(), NOW()),
('书柜定制', '', 3, 1, 0, 2, 7, NOW(), NOW()),
('鞋柜定制', '', 4, 1, 0, 2, 7, NOW(), NOW());

-- 家居安装的二级分类
INSERT INTO service_cate (title, icon, sort, status, browse, type, parent_id, created_at, updated_at) VALUES 
('灯具安装', '', 1, 1, 0, 2, 8, NOW(), NOW()),
('卫浴安装', '', 2, 1, 0, 2, 8, NOW(), NOW()),
('五金安装', '', 3, 1, 0, 2, 8, NOW(), NOW()),
('家具组装', '', 4, 1, 0, 2, 8, NOW(), NOW());

-- 重置自增ID
ALTER TABLE service_cate AUTO_INCREMENT = 100; 