Skip to content

Commit

Permalink
EDF: [premieroctet#125] add order field to orderTicket schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Dec 17, 2024
1 parent 411bcbe commit 0919e53
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const {schemaOptions} = require('../../../utils/schemas')
const Schema = mongoose.Schema

const OrderTicketSchema = new Schema({
order: {
type: Schema.Types.ObjectId,
ref: 'order',
required: [true, `La commande du ticket est obligatoire`]
},
name: {
type: String,
required: false
Expand Down

0 comments on commit 0919e53

Please sign in to comment.