11 lines
393 B
JavaScript
11 lines
393 B
JavaScript
const mongoose = require("mongoose");
|
|
const Schema = mongoose.Schema;
|
|
|
|
const DatagenEntrySchema = new Schema({
|
|
id: {type: String, required: true},
|
|
schema: { type: String, required: true},
|
|
data: { type: Object, default: {} },
|
|
datagen_collection: {type: mongoose.Types.ObjectId, ref: "DatagenCollection"},
|
|
});
|
|
|
|
module.exports = mongoose.model('DatagenEntry', DatagenEntrySchema); |