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