2024-09-06 13:27:00 +00:00
|
|
|
const mongoose = require("mongoose");
|
|
|
|
const Schema = mongoose.Schema;
|
|
|
|
|
|
|
|
const ConceptSchema = new Schema({
|
|
|
|
name: {type: String, required: true},
|
|
|
|
system: {type: String, required: true},
|
|
|
|
type: { type: String },
|
|
|
|
data: { type: Object },
|
2024-09-11 18:03:09 +00:00
|
|
|
book: {type: mongoose.Types.ObjectId, ref: "Book"},
|
|
|
|
campaign: {type: mongoose.Types.ObjectId, ref: "Campaign"},
|
2024-09-06 13:27:00 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Concept', ConceptSchema);
|