summaryrefslogtreecommitdiff
path: root/services/events/event.schema.js
blob: 555153bc1e63c3cab60afd976e1954a678472871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const { Schema, Types } = require('mongoose');

module.exports = new Schema({
  startDate: {
    type: Date,
    required: true
  },
  endDate: {
    type: Date,
    required: true
  },
  attendanceId: Number,
  conferenceId: Number,
  participantIds: [Types.ObjectId]
}, { timestamps: true });