🎈 perf(数据库): 优化数据库索引
This commit is contained in:
@@ -5,6 +5,8 @@ import Guild, { GuildType } from './Guild';
|
||||
import { GUILD_APPLY_TYPE, GUILD_PER_PAGE } from '../consts';
|
||||
import { genCode } from '../pubUtils/util';
|
||||
|
||||
@index({ applyCode: 1 })
|
||||
@index({ guildCode: 1 })
|
||||
@index({ roleId: 1 })
|
||||
export default class UserGuildApply extends BaseModel {
|
||||
@prop({ required: true })
|
||||
|
||||
Reference in New Issue
Block a user