feat: add Discord webhook configuration support to forms and create dedicated admin settings page

This commit is contained in:
2026-05-28 18:51:55 +07:00 Unverified
parent 9675758535
commit bcae6ece38
11 changed files with 1269 additions and 2 deletions
+3
View File
@@ -72,6 +72,9 @@ export const forms = pgTable("form", {
description: text("description"),
createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),
isOpen: boolean("is_open").notNull().default(true),
discordWebhookUrl: text("discord_webhook_url"),
discordWebhookTemplate: text("discord_webhook_template"),
discordWebhookUpdateTemplate: text("discord_webhook_update_template"),
});
export type QuestionType = "text" | "textarea" | "radio" | "checkbox";