File size: 484 Bytes
8811634
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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);