🎈 perf(数据库): 优化数据库索引
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user