🐞 fix(db): 修改新添加数据库表的索引

This commit is contained in:
liangtongchuan
2023-02-17 10:58:06 +08:00
committed by luying
parent 51ac6d8c3e
commit af08f0d5c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
import BaseModel from "./BaseModel";
import { index, getModelForClass, prop, DocumentType } from '@typegoose/typegoose';
@index({ teamId: 1 })
@index({ roleId: 1, teamId: 1 })
export default class GVGTeam extends BaseModel {
@prop({ required: true })
roleId: string; // 玩家id