2024-10-21 15:27:23 +00:00
|
|
|
const mongoose = require("mongoose");
|
|
|
|
const Schema = mongoose.Schema;
|
|
|
|
|
|
|
|
const DatagenCollectionSchema = new Schema({
|
2024-10-21 21:21:56 +00:00
|
|
|
name: {type: String, required: true },
|
2024-10-21 15:27:23 +00:00
|
|
|
id: { type: String, required: true },
|
2024-10-21 21:21:56 +00:00
|
|
|
module: { type: String, required: true},
|
|
|
|
package: { type: String, required: true },
|
|
|
|
icon: {type: String},
|
2024-10-21 15:27:23 +00:00
|
|
|
desc: { type: String },
|
|
|
|
entries: [ {type: mongoose.Types.ObjectId, ref: "DatagenEntry"} ],
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('DatagenCollection', DatagenCollectionSchema);
|