🎈 perf(数据库): 优化数据库索引
This commit is contained in:
@@ -4,7 +4,7 @@ import { index, getModelForClass, prop, DocumentType } from '@typegoose/typegoos
|
||||
/**
|
||||
* 首个礼包
|
||||
*/
|
||||
@index({ roleId: 1 })
|
||||
@index({ roleId: 1, activityId: 1 })
|
||||
|
||||
export default class Activity_First_Gift extends BaseModel {
|
||||
@prop({ required: true })
|
||||
|
||||
Reference in New Issue
Block a user