ensure that guild names are unique

This commit is contained in:
Sainan 2025-03-10 16:41:34 +01:00
parent 5cede0f3a7
commit 38e1c6ce9c

View File

@ -71,7 +71,7 @@ const longMOTDSchema = new Schema<ILongMOTD>(
const guildSchema = new Schema<IGuildDatabase>(
{
Name: { type: String, required: true },
Name: { type: String, required: true, unique: true },
MOTD: { type: String, default: "" },
LongMOTD: { type: longMOTDSchema, default: undefined },
DojoComponents: { type: [dojoComponentSchema], default: [] },