9 lines
307 B
SQL
9 lines
307 B
SQL
-- ----------------------------
|
|
-- 设备表增加部门(公司)归属,用于数据权限隔离
|
|
-- ----------------------------
|
|
alter table device_info
|
|
add column dept_id bigint(20) default null comment '部门/公司ID' after device_id;
|
|
|
|
create index idx_device_info_dept_id on device_info (dept_id);
|
|
|