fix: made user room number a string for added flexibility

This commit is contained in:
2025-05-06 21:45:48 +02:00
parent 2dc447a446
commit 9423b4804a
7 changed files with 11 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ interface IGrade {
grade?: number;
date: Date;
gradeDate?: Date;
room: number;
room: string;
notes?: GradeNote[];
tips: string;
}
@@ -18,7 +18,7 @@ const gradeSchema = new Schema<IGrade>({
grade: Number,
date: {type: Date, required: true},
gradeDate: Date,
room: {type: Number, required: true},
room: {type: String, required: true},
notes: [Object],
tips: String,
})