cr-database/mongodb/Note.ts

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