oficina / home Public

Clone
git clone https://amadan.net/oficina/home

Plain git — no account needed to clone.

Download

Download this file

1CREATE TABLE home_id_clock (id INTEGER PRIMARY KEY CHECK (id = 1), high_water INTEGER NOT NULL);
2INSERT INTO home_id_clock VALUES (1, 0);
3CREATE TABLE home_id_ceremonies (
4 challenge TEXT PRIMARY KEY,
5 browser_hash TEXT NOT NULL,
6 subject TEXT NOT NULL,
7 purpose TEXT NOT NULL,
8 expires_at INTEGER NOT NULL
9);
10CREATE INDEX home_id_ceremonies_expiry ON home_id_ceremonies(expires_at);
11CREATE TABLE home_id_discoverable (
12 credential_id TEXT PRIMARY KEY REFERENCES passkey_credentials(id) ON DELETE CASCADE
13);
14