dragonroll/backend/models/DatagenCollection.js
BinarySandia04 2a12f70c91
Some checks failed
test / run-tests-client (push) Successful in 46s
test / run-tests-backend (push) Failing after 15s
Datagen is generated inside convinient mongodb schemas
2024-10-21 17:27:23 +02:00

12 lines
428 B
JavaScript

const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const DatagenCollectionSchema = new Schema({
name: {type: String, required: true},
id: { type: String, required: true },
package: { type: String, required: true},
desc: { type: String },
entries: [ {type: mongoose.Types.ObjectId, ref: "DatagenEntry"} ],
});
module.exports = mongoose.model('DatagenCollection', DatagenCollectionSchema);