22 lines
519 B
JavaScript
22 lines
519 B
JavaScript
const mongoose = require('mongoose');
|
|
const mongoosePaginate = require('mongoose-paginate-v2');
|
|
|
|
|
|
const MeetingSchema = mongoose.Schema({
|
|
name : String,
|
|
subject : String,
|
|
description: String,
|
|
email : String,
|
|
phoneNumber : String,
|
|
nationalCode : String,
|
|
read : {type : Boolean , default : false},
|
|
_updatedBy: {
|
|
type: mongoose.Schema.Types.ObjectId,
|
|
ref: 'User'
|
|
}
|
|
});
|
|
|
|
MeetingSchema.plugin(mongoosePaginate);
|
|
|
|
module.exports = mongoose.model('Meeting', MeetingSchema);
|