From 054aeeba4c5d4b4e08c83a4288567360680164a0 Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Mon, 9 Dec 2024 10:47:35 +0100 Subject: [PATCH] EDF: [#71] add partner field to table schema --- .../server/plugins/entreprisedufutur/schemas/TableSchema.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js b/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js index b6182f91ca..f2a4c516c4 100644 --- a/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js +++ b/backend/web/server/plugins/entreprisedufutur/schemas/TableSchema.js @@ -13,6 +13,11 @@ const TableSchema = new Schema({ type: Number, required: [true, `Le nombre de places est obligatoire`] }, + partner: { + type: Schema.Types.ObjectId, + ref: 'user', + required: false + }, }, {...schemaOptions}) /* eslint-disable prefer-arrow-callback */