2022-06-29 09:08:42 +08:00
|
|
|
-- 创建索引
|
|
|
|
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 '用户';
|
2022-07-13 11:07:24 +08:00
|
|
|
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;
|
2022-06-29 09:08:42 +08:00
|
|
|
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;
|