Skip to content

Commit d863a1a

Browse files
Ripwordsclaude
andcommitted
feat(dashboard): add source, device_platform, idempotency_key to reports
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 95ed429 commit d863a1a

4 files changed

Lines changed: 1687 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ALTER TABLE "reports" ADD COLUMN "source" text DEFAULT 'web' NOT NULL;--> statement-breakpoint
2+
ALTER TABLE "reports" ADD COLUMN "device_platform" text;--> statement-breakpoint
3+
ALTER TABLE "reports" ADD COLUMN "idempotency_key" text;--> statement-breakpoint
4+
CREATE INDEX "reports_project_source_created_idx" ON "reports" USING btree ("project_id","source","created_at" DESC);--> statement-breakpoint
5+
CREATE UNIQUE INDEX "reports_project_idempotency_key_idx"
6+
ON "reports" ("project_id", "idempotency_key")
7+
WHERE "idempotency_key" IS NOT NULL;

0 commit comments

Comments
 (0)