From 9ffd856c1798c22a42165e658da535ff73e7e090 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Sun, 29 Jan 2023 16:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(db):=20=E7=BB=99=20GVGTeam=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/GVGTeam.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/shared/db/GVGTeam.ts b/shared/db/GVGTeam.ts index 4fc3aa168..79b723deb 100644 --- a/shared/db/GVGTeam.ts +++ b/shared/db/GVGTeam.ts @@ -3,12 +3,25 @@ import BaseModel from "./BaseModel"; import { index, getModelForClass, prop, DocumentType } from '@typegoose/typegoose'; @index({ roleId: 1, teamId: 1 }) +@index({ teamCode: 1 }) export default class GVGTeam extends BaseModel { @prop({ required: true }) roleId: string; // 玩家id @prop({ required: true }) - teamId: number; // 玩家队伍id,3个队伍 + teamCode: string; // 玩家队伍id,3个队伍 + + @prop({ required: true }) + leagueCode: string; // 联军 + + @prop({ required: false }) + areaId: number; + + @prop({ required: false }) + cityId: number; + + @prop({ required: false }) + pointId: number; @prop({ required: true }) head: number; // 头像