🎈 perf(数据库): 优化数据库索引

This commit is contained in:
luying
2022-10-24 18:46:24 +08:00
parent 0debd2f724
commit 81863e33ee
81 changed files with 84 additions and 87 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import { ROLE_SELECT } from '../consts';
/**
* 好友系统关系表
*/
@index({ roleId: 1, createdAt: -1 })
@index({ roleId: 1, frdRoleId: 1 })
@index({ applyCode: 1 })
export default class FriendApply extends BaseModel {