-- 删除设备表中不需要的字段
USE soybean_admin;

-- 查看当前表结构
SELECT '=== 修改前的表结构 ===' AS info;
DESC sys_device;

-- 删除不需要的字段
ALTER TABLE sys_device 
DROP COLUMN type,
DROP COLUMN location,
DROP COLUMN manager;

-- 验证修改
SELECT '=== 修改后的表结构 ===' AS info;
DESC sys_device;

SELECT '=== 字段删除完成 ===' AS info;
SELECT '已删除字段: type, location, manager' AS changes;

