add staff ID to notes
parent
d26db2d970
commit
6d270ba046
|
@ -2,6 +2,7 @@ import { Document, Schema, model } from 'mongoose';
|
||||||
|
|
||||||
export interface NoteInterface extends Document {
|
export interface NoteInterface extends Document {
|
||||||
userID: string,
|
userID: string,
|
||||||
|
staffID: string,
|
||||||
date: Date,
|
date: Date,
|
||||||
category: 'comm' | 'cs' | 'edu' | '',
|
category: 'comm' | 'cs' | 'edu' | '',
|
||||||
text: string,
|
text: string,
|
||||||
|
@ -9,6 +10,7 @@ export interface NoteInterface extends Document {
|
||||||
|
|
||||||
const Note: Schema = new Schema({
|
const Note: Schema = new Schema({
|
||||||
userID: String,
|
userID: String,
|
||||||
|
staffID: String,
|
||||||
date: Date,
|
date: Date,
|
||||||
category: String,
|
category: String,
|
||||||
text: String,
|
text: String,
|
||||||
|
|
Loading…
Reference in New Issue