-- 创建索引 alter table `tb_resource_collection` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '收藏的资源id'; alter table `tb_resource_car` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '加入申购车的id'; alter table `tb_resource_score` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '评分的资源id'; alter table `tb_resource_browse` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '资源id索引'; alter table `t_ability_application` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '资源id'; alter table `t_ability_application` ADD INDEX `userId`(`user_id`) USING BTREE comment '用户'; alter table `tb_data_resource` ADD FULLTEXT INDEX `type`(`type`) with parser ngram; alter table `tb_data_attr` ADD FULLTEXT INDEX `attr_value`(`attr_value`) with parser ngram; alter table `tb_data_resource` ADD FULLTEXT INDEX `name`(`name`) with parser ngram; alter table `tb_data_resource` ADD INDEX `deptId`(`dept_id`) USING BTREE; alter table `sys_dept` ADD INDEX `type`(`type`) USING BTREE; alter table `sys_dept` ADD INDEX `district`(`district`) USING BTREE; alter table `tb_resource_collection` ADD INDEX `userId`(`user_id`) USING BTREE;