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.
 
 
 
 
 
 

19 lines
570 B

CREATE TABLE web_authn_credentials (
uuid TEXT PRIMARY KEY NOT NULL,
user_uuid TEXT NOT NULL,
name TEXT NOT NULL,
credential TEXT NOT NULL,
credential_id_hash TEXT NOT NULL,
supports_prf BOOLEAN NOT NULL,
encrypted_user_key TEXT,
encrypted_public_key TEXT,
encrypted_private_key TEXT,
FOREIGN KEY (user_uuid) REFERENCES users(uuid) ON DELETE CASCADE,
UNIQUE (credential_id_hash)
);
CREATE TABLE web_authn_login_challenges (
token_hash TEXT PRIMARY KEY NOT NULL,
state TEXT NOT NULL,
created_at BIGINT NOT NULL
);