This commit is contained in:
2026-04-27 20:29:21 +02:00
parent 329ed5adb0
commit b928212608
10 changed files with 329 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const CampaignSchema = new Schema({
name: {type: String, required: true},
description: {type: String},
color: {type: String},
createdBy: {
type: Schema.Types.ObjectId,
ref: 'User',
required: true
},
date: { type: Date, default: Date.now},
settings: { type: Object }
});
module.exports = mongoose.model('Campaign', CampaignSchema);