feat(classes): store weekdays and meeting times on the class

Keep the class schedule on the class itself so SMS and listings do not have to infer days and hours from sessions.
This commit is contained in:
2026-08-15 23:59:07 +03:30
parent 192c595c68
commit 4d60755a95
5 changed files with 112 additions and 9 deletions
+18
View File
@@ -36,6 +36,24 @@ const classSchema = new mongoose.Schema({
endDate: {
type: Date
},
days: {
type: [{
type: Number,
min: 0,
max: 6
}],
default: []
},
startTime: {
type: String,
trim: true,
default: ''
},
endTime: {
type: String,
trim: true,
default: ''
},
isActive: {
type: Boolean,
default: true