const mongoose = require('mongoose'); const TutorialRefinityTaskSchema = new mongoose.Schema({ title: { type: String, required: true }, sourceText: { type: String, required: true, default: '' }, // Allow empty string for Deep Revision tasks createdBy: { type: String }, // name or email - should be admin weekNumber: { type: Number, required: true }, // Week 5+ }, { timestamps: true }); module.exports = mongoose.model('TutorialRefinityTask', TutorialRefinityTaskSchema);