dragonroll/backend/models/DatagenCollection.js
BinarySandia04 a2253889ce
Some checks failed
test / run-tests-client (push) Successful in 18s
test / run-tests-backend (push) Failing after 14s
Falta fer rework de Database window
2024-10-21 23:21:56 +02:00

14 lines
501 B
JavaScript

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