dragonroll/backend/models/DatagenCollection.js

12 lines
428 B
JavaScript
Raw Normal View History

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);