Spaces:
Running
Running
File size: 570 Bytes
e080d3e 8811634 8ff00f6 e080d3e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
const mongoose = require('mongoose');
const RefinityAnnotationSchema = new mongoose.Schema({
versionId: { type: mongoose.Schema.Types.ObjectId, ref: 'RefinityVersion', required: true },
start: { type: Number, required: true },
end: { type: Number, required: true },
category: { type: String, required: true },
comment: { type: String },
correction: { type: String },
createdBy: { type: String }, // Optional: username who created the annotation
}, { timestamps: true });
module.exports = mongoose.model('RefinityAnnotation', RefinityAnnotationSchema);
|