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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user