feat: feedback form

This commit is contained in:
Henry
2025-01-29 12:09:40 +00:00
parent 0521ad5e87
commit 8addf952a9
10 changed files with 1929 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS "feedback" (
"id" bigserial PRIMARY KEY NOT NULL,
"feedback" text NOT NULL,
"createdBy" uuid NOT NULL,
"createdAt" timestamp DEFAULT now() NOT NULL,
"updatedAt" timestamp,
"url" text NOT NULL,
"reviewed" boolean DEFAULT false NOT NULL
);
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "feedback" ADD CONSTRAINT "feedback_createdBy_user_id_fk" FOREIGN KEY ("createdBy") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;

File diff suppressed because it is too large Load Diff

View File

@@ -43,6 +43,13 @@
"when": 1737130330536,
"tag": "0005_modern_gideon",
"breakpoints": true
},
{
"idx": 6,
"version": "7",
"when": 1738149668712,
"tag": "0006_spicy_mach_iv",
"breakpoints": true
}
]
}