feat: add allowOther field to questions and update image upload to return data URIs

This commit is contained in:
2026-05-30 01:35:33 +07:00 Unverified
parent 114804749c
commit 6a36965e8b
10 changed files with 689 additions and 27 deletions
+1
View File
@@ -35,6 +35,7 @@ export const questions = pgTable("question", {
displayOrder: integer("display_order").notNull().default(0),
required: boolean("required").notNull().default(false),
options: jsonb("options").$type<string[]>().default([]),
allowOther: boolean("allow_other").notNull().default(false),
});
export const submissions = pgTable("submission", {