You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
709 B
15 lines
709 B
CREATE TABLE web_authn_credentials (
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
user_uuid CHAR(36) NOT NULL,
|
|
name TEXT NOT NULL,
|
|
credential TEXT NOT NULL,
|
|
credential_id_hash VARCHAR(64) NOT NULL,
|
|
supports_prf BOOLEAN NOT NULL DEFAULT 0,
|
|
encrypted_user_key TEXT,
|
|
encrypted_public_key TEXT,
|
|
encrypted_private_key TEXT,
|
|
FOREIGN KEY (user_uuid) REFERENCES users (uuid) ON DELETE CASCADE
|
|
);
|
|
|
|
CREATE INDEX idx_web_authn_credentials_user_uuid ON web_authn_credentials (user_uuid);
|
|
CREATE UNIQUE INDEX idx_web_authn_credentials_credential_id_hash ON web_authn_credentials (user_uuid, credential_id_hash);
|
|
|