mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: passkey table
This commit is contained in:
@@ -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
@@ -253,6 +253,13 @@
|
|||||||
"when": 1771922367910,
|
"when": 1771922367910,
|
||||||
"tag": "0035_late_young_avengers",
|
"tag": "0035_late_young_avengers",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 36,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1772200673674,
|
||||||
|
"tag": "0036_chief_night_thrasher",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -80,14 +80,14 @@ export const verification = pgTable("verification", {
|
|||||||
export const passkey = pgTable("passkey", {
|
export const passkey = pgTable("passkey", {
|
||||||
id: uuid("id").defaultRandom().primaryKey(),
|
id: uuid("id").defaultRandom().primaryKey(),
|
||||||
name: text("name"),
|
name: text("name"),
|
||||||
publicKey: text("public_key").notNull(),
|
publicKey: text().notNull(),
|
||||||
userId: uuid("user_id")
|
userId: uuid("user_id")
|
||||||
.notNull()
|
.notNull()
|
||||||
.references(() => user.id, { onDelete: "cascade" }),
|
.references(() => user.id, { onDelete: "cascade" }),
|
||||||
credentialId: text("credential_id").notNull(),
|
credentialId: text().notNull(),
|
||||||
counter: integer("counter").notNull(),
|
counter: integer().notNull(),
|
||||||
deviceType: text("device_type").notNull(),
|
deviceType: text().notNull(),
|
||||||
backedUp: boolean("backed_up").notNull(),
|
backedUp: boolean().notNull(),
|
||||||
transports: text("transports"),
|
transports: text("transports"),
|
||||||
aaguid: text("aaguid"),
|
aaguid: text("aaguid"),
|
||||||
...timestamps,
|
...timestamps,
|
||||||
|
|||||||
Reference in New Issue
Block a user