Skip to content

Commit

Permalink
EDF: [premieroctet#75] add assigned_users field in table schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Dec 9, 2024
1 parent 3f34ab9 commit f443f47
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ const TableSchema = new Schema({
validate: [function (value) {return value.length <= this.staff_number}, function () { return `Le nombre d'invité.e.s ne peut pas dépasser ${this.staff_number}`}],
default: []
},
assigned_users: {
type: [{
type: Schema.Types.ObjectId,
ref: 'user',
required: true
}],
required: false,
default: []
},
}, {...schemaOptions})

/* eslint-disable prefer-arrow-callback */
Expand Down

0 comments on commit f443f47

Please sign in to comment.