Commit adef774e by mercymodest

feat: add main_device_code_status column to t_device_code for primary device tracking

parent 59de2d17
-- 设备设备码表
-- 设备设备码表
......@@ -17,6 +17,9 @@ CREATE TABLE `t_device_code`
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT = '设备设备码表';
alter table t_device_code
add main_device_code_status tinyint default 0 null comment '是否是主设备码 0: 不是 1: 是(每个设备只有一个主设备码)';
-- idx virtual_device_id,device_id
CREATE INDEX idx_virtual_device_id_device_id ON `t_device_code` (`virtual_device_id`, `device_id`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment