mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-15 16:05:56 +02:00
Co-authored-by: zUnixorn <77864446+zUnixorn@users.noreply.github.com> Co-authored-by: a15355447898a <62456287+a15355447898a@users.noreply.github.com> Co-authored-by: Sammy ETUR <50653464+samos667@users.noreply.github.com> Co-authored-by: Zaid Marji <91486926+zaid-marji@users.noreply.github.com> Co-authored-by: Raphaël Roumezin <94066559+RaphaelRoumezin@users.noreply.github.com> Co-authored-by: Keng <39216134+kengzzzz@users.noreply.github.com> Co-authored-by: Akhil Babel <335565203+akh1lb@users.noreply.github.com>
16 lines
665 B
SQL
16 lines
665 B
SQL
CREATE TABLE webauthn_credentials (
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
user_uuid CHAR(36) NOT NULL REFERENCES users (uuid) ON DELETE CASCADE,
|
|
name TEXT NOT NULL,
|
|
credential_id TEXT NOT NULL,
|
|
credential TEXT NOT NULL,
|
|
supports_prf BOOLEAN NOT NULL,
|
|
encrypted_user_key TEXT,
|
|
encrypted_public_key TEXT,
|
|
encrypted_private_key TEXT,
|
|
last_challenge_issued_at BIGINT,
|
|
created_at TIMESTAMP NOT NULL,
|
|
updated_at TIMESTAMP NOT NULL,
|
|
UNIQUE (user_uuid, credential_id)
|
|
);
|