From 75a58e5a8c8396ebfd729de204d8073d87b78e00 Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Mon, 9 Dec 2024 10:43:16 +0100 Subject: [PATCH] EDF: [#70] add capacity field to table schema --- .../server/plugins/entreprisedufutur/schemas/TableSchema.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js b/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js index 23c7ab3892..b6182f91ca 100644 --- a/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js +++ b/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js @@ -9,6 +9,10 @@ const TableSchema = new Schema({ ref: 'tablemap', required: [true, `Le plan de table de la table est obligatoire`] }, + capacity: { + type: Number, + required: [true, `Le nombre de places est obligatoire`] + }, }, {...schemaOptions}) /* eslint-disable prefer-arrow-callback */