Commit 8c3879bb by tyfanchz

增加表索引

1 parent c40df2c4
...@@ -56,6 +56,10 @@ CREATE TABLE `t_platform_device` ...@@ -56,6 +56,10 @@ CREATE TABLE `t_platform_device`
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COMMENT ='设备管理表'; ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COMMENT ='设备管理表';
CREATE INDEX idx_get_list
ON t_platform_device (device_sn,device_type,activat_time,`status`,customer_id)
COMMENT '设备列表查询索引';
DROP TABLE IF EXISTS `t_platform_user`; DROP TABLE IF EXISTS `t_platform_user`;
CREATE TABLE `t_platform_user` CREATE TABLE `t_platform_user`
( (
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!