TransHub_backend / models /TutorialRefinityTask.js
linguabot's picture
Upload folder using huggingface_hub
8811634 verified
raw
history blame contribute delete
484 Bytes
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);