Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ Re-running `bun run db:seed` resets only those two deterministic demo projects.
4. Let a contributor recover a browser-local IndexedDB draft, including image
files dropped onto or picked for the photo questions, agree to the privacy
policy, and submit with an idempotency key.
5. Review read-only submissions and permanently close collection.
5. Review submissions, permanently close collection, and correct submitted text with visible edit
history when needed.
6. Create canonical millimetre-based layouts with the Fabric.js editor.
7. Generate and review one page per response plus optional standalone pages.
8. Resolve blocking text, print-area, gallery, and image-resolution problems.
Expand Down
12 changes: 12 additions & 0 deletions drizzle/20260824201805_ordinary_unicorn.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CREATE TABLE "submission_edits" (
"id" uuid PRIMARY KEY NOT NULL,
"submission_id" uuid NOT NULL,
"editor_user_id" text NOT NULL,
"editor_name" text NOT NULL,
"changes" jsonb NOT NULL,
"edited_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "submissions" ADD COLUMN "revision" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
ALTER TABLE "submission_edits" ADD CONSTRAINT "submission_edits_submission_id_submissions_id_fk" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "submission_edits_submission_index" ON "submission_edits" USING btree ("submission_id");
Loading