Skip to content

Commit

Permalink
EDF: [premieroctet#71] add partner field to table schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Dec 9, 2024
1 parent 75a58e5 commit 054aeeb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 054aeeb

Please sign in to comment.