cr-database/models/Note.ts

20 lines
390 B
TypeScript
Raw Normal View History

2021-12-25 13:37:42 -05:00
import { Document, Schema, model } from 'mongoose';
export interface NoteInterface extends Document {
userID: string,
staffID: string,
date: Date,
category: 'comm' | 'cs' | 'edu' | '',
text: string,
}
const Note: Schema = new Schema({
userID: String,
staffID: String,
date: Date,
category: String,
text: String,
});
export default model<NoteInterface>('Note', Note);