Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {Property, PropertyName, Required} from "@tsed/common";
import {Model, Ref} from "@tsed/mongoose";
import {Description} from "@tsed/swagger";
import {Calendar} from "../calendars/Calendar";
@Model()
export class CalendarEvent {
@PropertyName("id")
_id: string;
@Ref(Calendar)
@Description("Calendar ID")
calendarId: Ref;
@Property("name")
@Description("The name of the event")
name: string;
@Property()
@Description("Creation's date")
dateCreate: Date = new Date();
@Property()
@Description("Last modification date")
dateUpdate: Date = new Date();
@Property()