feat: next

This commit is contained in:
2025-05-12 11:30:33 -04:00
parent cdeaa13d92
commit 07cec78aa5
36 changed files with 1553 additions and 327 deletions

View File

@ -3,7 +3,7 @@ CREATE TABLE user (
id INTEGER PRIMARY KEY NOT NULL,
username TEXT NOT NULL,
password TEXT NOT NULL,
profile_picture_id INTEGER,
profile_picture_id INTEGER, webauthn_id TEXT NOT NULL,
FOREIGN KEY (profile_picture_id) REFERENCES file (id)
);
@ -26,6 +26,23 @@ CREATE TABLE item (
FOREIGN KEY (user_id) REFERENCES user (id)
);
CREATE TABLE credential (
cred_id TEXT PRIMARY KEY NOT NULL,
cred_public_key BLOB NOT NULL,
sign_count INTEGER NOT NULL,
transports TEXT,
user_verified BOOLEAN,
backup_eligible BOOLEAN,
backup_state BOOLEAN,
attestation_object BLOB,
attestation_client_data BLOB,
created_at DATETIME NOT NULL,
last_used DATETIME NOT NULL,
user_id INTEGER NOT NULL,
FOREIGN KEY (user_id) REFERENCES user (id)
);
-- Dbmate schema migrations
INSERT INTO "schema_migrations" (version) VALUES
('20250410195416');
('20250410195416'),
('20250418055807');