diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:25:29 +0100 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:25:29 +0100 |
commit | 2996a4d05d0ea2f8446e2a2a0383979ceec748ae (patch) | |
tree | aeab360ac4c1aa14f50b638f9b799dad8df55ff8 /src/models/EventGroup.ts | |
parent | 115210bfd9a5ae7bb8b516ce0d2cf3d9042dead7 (diff) |
Run Prettier on all files
Diffstat (limited to 'src/models/EventGroup.ts')
-rwxr-xr-x | src/models/EventGroup.ts | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/src/models/EventGroup.ts b/src/models/EventGroup.ts index f097843..2b5c2aa 100755 --- a/src/models/EventGroup.ts +++ b/src/models/EventGroup.ts @@ -1,75 +1,75 @@ import mongoose from "mongoose"; export interface ISubscriber { - email?: string; + email?: string; } export interface IEventGroup extends mongoose.Document { - id: string; - name: string; - description: string; - image?: string; - url?: string; - creatorEmail?: string; - hostName?: string; - editToken?: string; - firstLoad?: boolean; - events?: mongoose.Types.ObjectId[]; - subscribers?: ISubscriber[]; + id: string; + name: string; + description: string; + image?: string; + url?: string; + creatorEmail?: string; + hostName?: string; + editToken?: string; + firstLoad?: boolean; + events?: mongoose.Types.ObjectId[]; + subscribers?: ISubscriber[]; } const Subscriber = new mongoose.Schema({ - email: { - type: String, - trim: true, - }, + 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], + 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<IEventGroup>("EventGroup", EventGroupSchema); |