cr-database/models/Note.ts

21 lines
361 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
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({ required: true })
category: NoteType;
@prop({ required: true })
text: string;
}