15 lines
382 B
SQL
15 lines
382 B
SQL
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
|
|
);
|