2024-08-08 23:29:08 +00:00
|
|
|
const mongoose = require("mongoose");
|
|
|
|
const Schema = mongoose.Schema;
|
|
|
|
|
|
|
|
const EntitySchema = new Schema({
|
|
|
|
name: {type: String, required: true},
|
|
|
|
data: { type: Object },
|
|
|
|
campaign: {type: mongoose.Types.ObjectId, ref: "Campaign"},
|
2024-09-06 13:27:00 +00:00
|
|
|
token_image: { type: String },
|
2024-08-08 23:29:08 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Entity', EntitySchema);
|