From 21c48b2a03a96d40e21790c5c61db33c0850563e Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Wed, 24 Mar 2021 23:21:29 +0530 Subject: [PATCH] add bracket reset to match --- src/models/matches.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/models/matches.js b/src/models/matches.js index cfb6524..53cc15f 100644 --- a/src/models/matches.js +++ b/src/models/matches.js @@ -34,6 +34,10 @@ const matches = new Schema({ type: Boolean, required: true, }, + reset: { + type: Boolean, + default: false, + }, type: { type: String, required: true, @@ -52,6 +56,16 @@ const matches = new Schema({ default: 0, }, }, + resets: { + orange: { + type: Number, + default: 0, + }, + blue: { + type: Number, + default: 0, + }, + }, games: { type: [gameScores], }