import { prop } from '@typegoose/typegoose'; export type NoteType = 'comm' | 'cs' | 'edu' | ''; export default class Note { @prop({ required: true }) userID: string; @prop({ required: true }) staffID: string; @prop({ required: true }) date: Date; @prop({ default: '' }) category: NoteType; @prop({ required: true }) text: string; }