feat(analytics): added in backend anaylitics

This commit is contained in:
2026-05-07 10:20:50 -05:00
parent e9b0101095
commit 9edafc9d28
21 changed files with 4766 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
CREATE TABLE "analytics" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
"method" text NOT NULL,
"route_pattern" text NOT NULL,
"actual_path" text NOT NULL,
"status_code" integer NOT NULL,
"duration_ms" integer NOT NULL,
"module" text,
"user_id" text,
"user_email" text,
"ip_address" text,
"user_agent" text
);