feat: improve form results and harden secrets
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import "server-only";
|
||||
import { drizzle } from "drizzle-orm/postgres-js";
|
||||
import postgres from "postgres";
|
||||
import * as schema from "./schema";
|
||||
|
||||
@@ -85,6 +85,7 @@ export const submissions = formSchema.table(
|
||||
.references(() => forms.id, { onDelete: "cascade" }),
|
||||
userDiscordId: text("user_discord_id"),
|
||||
userName: text("user_name"),
|
||||
adminNote: text("admin_note"),
|
||||
submittedAt: timestamp("submitted_at", { mode: "date" }).defaultNow().notNull(),
|
||||
editHistory: jsonb("edit_history")
|
||||
.$type<{ editedAt: string; oldAnswers: Record<string, { value: string; imageCdnId: string | null }> }[]>()
|
||||
|
||||
Reference in New Issue
Block a user