Changeset 9e9e6f9 in Klonkt for src/config/database.js
- Timestamp:
- 07/21/2026 01:16:03 AM (7 weeks ago)
- Branches:
- main
- Children:
- d43230f
- Parents:
- 928d1c7
- git-author:
- Robin <roboburr@…> (07/21/2026 01:15:39 AM)
- git-committer:
- Robin <roboburr@…> (07/21/2026 01:16:03 AM)
- File:
-
- 1 edited
-
src/config/database.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/config/database.js
r928d1c7 r9e9e6f9 323 323 default_min_cents INTEGER DEFAULT 0, 324 324 updated_at DATETIME DEFAULT CURRENT_TIMESTAMP 325 ); 326 -- One row per passkey. NO patron identity is stored (design decision): 327 -- {passkey, site, proven cents, expiry}. Not traceable to a person. 328 CREATE TABLE IF NOT EXISTS paid_entitlements ( 329 credential_id TEXT PRIMARY KEY, -- WebAuthn credential id (opaque, base64url) 330 site_id TEXT NOT NULL, 331 public_key TEXT NOT NULL, -- COSE public key, base64url 332 counter INTEGER DEFAULT 0, 333 transports TEXT, 334 min_cents INTEGER DEFAULT 0, -- the amount proven at link time 335 expires_at INTEGER NOT NULL, -- unix seconds; re-link after 336 created_at DATETIME DEFAULT CURRENT_TIMESTAMP 325 337 ); 326 338 CREATE TABLE IF NOT EXISTS ap_outbox (
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)