Skip to content
Permalink
Browse files
Add files via upload
  • Loading branch information
warangm committed Nov 4, 2022
1 parent c05216e commit 55dd1f4d3a41b74736c2934e2c15a1ad9bd580ea
Showing 1 changed file with 50 additions and 0 deletions.
@@ -0,0 +1,50 @@
import mongoose from "mongoose";

const EventSchema = new mongoose.Schema({
title: {
type: String,
required: true,
},
clubID: {
type: String,
required: true,
},
maxParticipation: {
type: Number,
},
desc: {
type: String,
},
organizer: {
type: [
{
name: {
type: String,
required: true,
},
email: {
type: String,
required: true,
},
},
],
required: true,
},

schedule: {
type: [
{
date: {
type: String,
required: true
},
time: {
type: String,
required: true
}
}
],
},
});

export default mongoose.model("Event", EventSchema);

0 comments on commit 55dd1f4

Please sign in to comment.