stock.geolock.fr/apps/api/drizzle/0003_lonely_turbo.sql
2026-02-24 16:10:30 +00:00

10 lines
413 B
SQL

CREATE TABLE "api_keys" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"provider" text NOT NULL,
"label" text NOT NULL,
"value" text NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX "api_keys_provider_label_unique" ON "api_keys" USING btree ("provider","label");