Spaces:
Running
Running
| 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); | |