feat: add soft delete for classes with cascade to sessions and linked records
This commit is contained in:
@@ -108,6 +108,15 @@ const classSchema = new mongoose.Schema({
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
isDeleted: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
index: true
|
||||
},
|
||||
deletedAt: {
|
||||
type: Date,
|
||||
default: null
|
||||
},
|
||||
adminNotes: {
|
||||
type: [String],
|
||||
default: []
|
||||
|
||||
Reference in New Issue
Block a user