21 lines
358 B
TypeScript
21 lines
358 B
TypeScript
|
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;
|
||
|
}
|