chore: update schema file

This commit is contained in:
2026-03-11 00:16:19 +08:00
parent eac81d2fab
commit a3b9134299
3 changed files with 1844 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
CREATE TABLE "passkey" (
"id" text PRIMARY KEY NOT NULL,
"name" text,
"public_key" text NOT NULL,
"user_id" text NOT NULL,
"credential_id" text NOT NULL,
"counter" integer NOT NULL,
"device_type" text NOT NULL,
"backed_up" boolean NOT NULL,
"transports" text,
"created_at" timestamp,
"aaguid" text
);
--> statement-breakpoint
ALTER TABLE "jwks" DISABLE ROW LEVEL SECURITY;--> statement-breakpoint
DROP TABLE "jwks" CASCADE;--> statement-breakpoint
ALTER TABLE "passkey" ADD CONSTRAINT "passkey_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "passkey_userId_idx" ON "passkey" USING btree ("user_id");--> statement-breakpoint
CREATE INDEX "passkey_credentialID_idx" ON "passkey" USING btree ("credential_id");--> statement-breakpoint
CREATE INDEX "account_userId_idx" ON "account" USING btree ("user_id");--> statement-breakpoint
CREATE INDEX "session_userId_idx" ON "session" USING btree ("user_id");--> statement-breakpoint
CREATE INDEX "verification_identifier_idx" ON "verification" USING btree ("identifier");

File diff suppressed because it is too large Load Diff

View File

@@ -8,6 +8,13 @@
"when": 1773148750321, "when": 1773148750321,
"tag": "0000_last_big_bertha", "tag": "0000_last_big_bertha",
"breakpoints": true "breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1773159362406,
"tag": "0001_superb_the_twelve",
"breakpoints": true
} }
] ]
} }