Skip to content

Commit 0cd0f1a

Browse files
committed
feat: generate drizzle kit journal file
1 parent 2b73044 commit 0cd0f1a

2 files changed

Lines changed: 7732 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CREATE TABLE "cli_installations" (
2+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
3+
"event_type" varchar(30) NOT NULL,
4+
"os" varchar(50) DEFAULT 'unknown' NOT NULL,
5+
"arch" varchar(10) DEFAULT 'unknown' NOT NULL,
6+
"version" varchar(20) NOT NULL,
7+
"duration" integer DEFAULT 0 NOT NULL,
8+
"error" varchar(200),
9+
"ip_hash" varchar(64) NOT NULL,
10+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
11+
);
12+
--> statement-breakpoint
13+
CREATE INDEX "idx_cli_installations_created_at" ON "cli_installations" USING btree ("created_at");--> statement-breakpoint
14+
CREATE INDEX "idx_cli_installations_ip_hash" ON "cli_installations" USING btree ("ip_hash");--> statement-breakpoint
15+
CREATE INDEX "idx_cli_installations_event_type" ON "cli_installations" USING btree ("event_type");

0 commit comments

Comments
 (0)