diff --git a/src/models/GameRecord.ts b/src/models/GameRecord.ts index e01a611..dc8ef52 100644 --- a/src/models/GameRecord.ts +++ b/src/models/GameRecord.ts @@ -45,6 +45,12 @@ class GameRecordClass extends Base{ public round: number; @prop() public winner: number; + /** + * 赛季 + * @type {number} 0: 匹配, 1: 对应赛季 + */ + @prop() + public season: number; @prop({_id: false, type: () => [GamePlayer]}) public players: GamePlayer[]; @@ -54,6 +60,7 @@ class GameRecordClass extends Base{ roomid: this.roomid, round: this.round, winner: this.winner, + season: this.season, players: '', }