Refine workspaces and event publishing; harden uploads and email delivery
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
ALTER TABLE "events" ADD COLUMN "custom_banner_id" uuid;
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "event_banners" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
"event_id" uuid NOT NULL REFERENCES "events"("id") ON DELETE CASCADE,
|
||||
"original_key" text NOT NULL,
|
||||
"display_key" text,
|
||||
"content_type" text NOT NULL,
|
||||
"byte_size" integer NOT NULL,
|
||||
"status" text NOT NULL DEFAULT 'uploading',
|
||||
"created_at" timestamptz NOT NULL DEFAULT now(),
|
||||
"updated_at" timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX "event_banners_event_idx" ON "event_banners" ("event_id");
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX "event_banners_status_idx" ON "event_banners" ("status");
|
||||
Reference in New Issue
Block a user