Branchwell

Lumen & Gesso / website · lumengesso.com / d1 / migrations / 0003_passkey.sql

1-- Passkeys (Better Auth passkey plugin 1.7.28). Passkeys are the only way to sign in.
2create table "passkey" ("id" text not null primary key, "name" text, "publicKey" text not null, "userId" text not null references "user" ("id") on delete cascade, "credentialID" text not null, "counter" integer not null, "deviceType" text not null, "backedUp" integer not null, "transports" text, "createdAt" date, "aaguid" text);
3
4create index "passkey_userId_idx" on "passkey" ("userId");
5
6create index "passkey_credentialID_idx" on "passkey" ("credentialID");