TransHub_backend / models /TutorialRefinityVersion.js
linguabot's picture
Upload folder using huggingface_hub
8811634 verified
const mongoose = require('mongoose');
const TutorialRefinityVersionSchema = new mongoose.Schema({
taskId: { type: mongoose.Schema.Types.ObjectId, ref: 'TutorialRefinityTask', required: true },
originalAuthor: { type: String, required: true },
revisedBy: { type: String },
versionNumber: { type: Number, required: true },
content: { type: String, required: true },
parentVersionId: { type: mongoose.Schema.Types.ObjectId, ref: 'TutorialRefinityVersion' },
}, { timestamps: true });
module.exports = mongoose.model('TutorialRefinityVersion', TutorialRefinityVersionSchema);