cr-database/models/Note.ts

21 lines
361 B
TypeScript
Raw Normal View History

2021-12-25 13:58:49 -05:00
import { prop } from '@typegoose/typegoose';
2021-12-25 13:37:42 -05:00
2021-12-25 13:58:49 -05:00
export type NoteType = 'comm' | 'cs' | 'edu' | '';
export default class Note {
@prop({ required: true })
userID: string;
@prop({ required: true })
staffID: string;
2021-12-25 13:37:42 -05:00
2021-12-25 13:58:49 -05:00
@prop({ required: true })
date: Date;
2021-12-25 13:37:42 -05:00
2021-12-25 13:58:49 -05:00
@prop({ required: true })
category: NoteType;
@prop({ required: true })
text: string;
}