fix: passkey table

This commit is contained in:
Théo LAGACHE
2026-02-27 14:58:52 +01:00
parent 3273f8dd11
commit d557620c81
4 changed files with 2446 additions and 5 deletions
@@ -0,0 +1,4 @@
ALTER TABLE "passkey" RENAME COLUMN "public_key" TO "publicKey";--> statement-breakpoint
ALTER TABLE "passkey" RENAME COLUMN "credential_id" TO "credentialId";--> statement-breakpoint
ALTER TABLE "passkey" RENAME COLUMN "device_type" TO "deviceType";--> statement-breakpoint
ALTER TABLE "passkey" RENAME COLUMN "backed_up" TO "backedUp";
File diff suppressed because it is too large Load Diff
+7
View File
@@ -253,6 +253,13 @@
"when": 1771922367910,
"tag": "0035_late_young_avengers",
"breakpoints": true
},
{
"idx": 36,
"version": "7",
"when": 1772200673674,
"tag": "0036_chief_night_thrasher",
"breakpoints": true
}
]
}
+5 -5
View File
@@ -80,14 +80,14 @@ export const verification = pgTable("verification", {
export const passkey = pgTable("passkey", {
id: uuid("id").defaultRandom().primaryKey(),
name: text("name"),
publicKey: text("public_key").notNull(),
publicKey: text().notNull(),
userId: uuid("user_id")
.notNull()
.references(() => user.id, { onDelete: "cascade" }),
credentialId: text("credential_id").notNull(),
counter: integer("counter").notNull(),
deviceType: text("device_type").notNull(),
backedUp: boolean("backed_up").notNull(),
credentialId: text().notNull(),
counter: integer().notNull(),
deviceType: text().notNull(),
backedUp: boolean().notNull(),
transports: text("transports"),
aaguid: text("aaguid"),
...timestamps,