Foundry and discord bot
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m51s

This commit is contained in:
2026-10-11 22:26:29 +02:00
parent a2b512699a
commit 1402045001
65 changed files with 5962 additions and 144 deletions

View File

@@ -11,7 +11,14 @@ const CampaignSchema = new Schema({
required: true
},
date: { type: Date, default: Date.now},
settings: { type: Object }
settings: { type: Object },
foundryWorldId: { type: String, unique: true, sparse: true },
foundryWorldTitle: { type: String },
foundrySystem: { type: String },
foundrySyncTokenHash: { type: String, select: false },
// Discord server ("guild") this campaign is linked to. A campaign serves
// at most one guild, and a guild selects one campaign.
discordGuildId: { type: String, index: true }
});
module.exports = mongoose.model('Campaign', CampaignSchema);
module.exports = mongoose.model('Campaign', CampaignSchema);