Files
heidi/drizzle/0018_error_events.sql

11 lines
413 B
SQL

CREATE TABLE "error_events" (
"hash" text PRIMARY KEY NOT NULL,
"route" text NOT NULL,
"name" text NOT NULL,
"message" text NOT NULL,
"count" integer DEFAULT 1 NOT NULL,
"first_seen" timestamp with time zone DEFAULT now() NOT NULL,
"last_seen" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX "error_events_last_seen_idx" ON "error_events" USING btree ("last_seen");