Spaces:
Paused
Paused
File size: 520 Bytes
c904036 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | const mongoose = require('mongoose');
const eventVerificationSchema = new mongoose.Schema({
eventId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Event',
required: true,
},
verifierId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
required: true,
},
status: {
type: String,
enum: ['approved', 'rejected', 'pending'],
default: 'pending',
},
remarks: String,
verifiedAt: Date,
});
module.exports = mongoose.model('EventVerification', eventVerificationSchema);
|