diff options
Diffstat (limited to 'src/models/EventGroup.js')
-rwxr-xr-x | src/models/EventGroup.js | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/models/EventGroup.js b/src/models/EventGroup.js deleted file mode 100755 index f19e374..0000000 --- a/src/models/EventGroup.js +++ /dev/null @@ -1,57 +0,0 @@ -import mongoose from "mongoose"; - -const Subscriber = new mongoose.Schema({ - email: { - type: String, - trim: true, - }, -}); - -const EventGroupSchema = new mongoose.Schema({ - id: { - type: String, - required: true, - unique: true, - }, - name: { - type: String, - trim: true, - required: true, - }, - description: { - type: String, - trim: true, - required: true, - }, - image: { - type: String, - trim: true, - }, - url: { - type: String, - trim: true, - }, - creatorEmail: { - type: String, - trim: true, - }, - hostName: { - type: String, - trim: true, - }, - editToken: { - type: String, - trim: true, - minlength: 32, - maxlength: 32, - }, - firstLoad: { - type: Boolean, - trim: true, - default: true, - }, - events: [{ type: mongoose.Schema.Types.ObjectId, ref: "Event" }], - subscribers: [Subscriber], -}); - -export default mongoose.model("EventGroup", EventGroupSchema); |