feat: guild ads #1390
@ -239,7 +239,7 @@ const guildAdSchema = new Schema<IGuildAdDatabase>({
|
|||||||
Tier: { type: Number, required: true }
|
Tier: { type: Number, required: true }
|
||||||
});
|
});
|
||||||
|
|
||||||
guildAdSchema.index({ guildId: 1 }, { unique: true });
|
guildAdSchema.index({ GuildId: 1 }, { unique: true });
|
||||||
guildAdSchema.index({ Expiry: 1 }, { expireAfterSeconds: 0 });
|
guildAdSchema.index({ Expiry: 1 }, { expireAfterSeconds: 0 });
|
||||||
|
|
||||||
export const GuildAd = model<IGuildAdDatabase>("GuildAd", guildAdSchema);
|
export const GuildAd = model<IGuildAdDatabase>("GuildAd", guildAdSchema);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user