🎈 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
+1 -2
View File
@@ -9,8 +9,7 @@ import { DIVIDEND_STATUS, ROLE_RECEIVE_STATUS } from '../consts';
**/
@modelOptions({ schemaOptions: { id: false } })
@index({ code: 1 })
@index({ begin: -1, guildCode: 1 })
@index({ begin: -1, serverId: 1 })
@index({ begin: -1, guildCode: 1, serverId: 1 })
@index({ 'lots.code': 1 })
export default class Dividend extends BaseModel {
@prop({ required: true, default: 0 })