nsecbunkerd/prisma/migrations
Padreug 6397c7988d feat(schema)(#25): Request.keyUserId + SigningCondition lifecycle for live grant eval
Additive, non-breaking schema prep for the Option D live-evaluation ACL:

- Request gains keyUserId (FK) + @@index([keyUserId, method]) so token
  usage caps can be derived live by COUNTing allowed Requests, replacing
  the never-enforced mutable PolicyRule.currentUsageCount (derive-don't-count,
  per lnbits/nostr_bunker prior art).
- SigningCondition gains createdAt/expiresAt/revokedAt so the manual-override
  layer carries its own lifecycle and runs through the same grantIsLive(now)
  predicate as token grants (D1: two typed sources, one shared rule).

No behavior change yet; the ACL hot path and applyToken de-materialization
follow in subsequent commits.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 15:00:33 +02:00
..
20230503095726_init initial commit 2023-05-15 20:05:55 +02:00
20230503100402_unique initial commit 2023-05-15 20:05:55 +02:00
20230503100514_rename initial commit 2023-05-15 20:05:55 +02:00
20230503103731_add_method initial commit 2023-05-15 20:05:55 +02:00
20230527214402_add_timestamp updates 2023-05-31 20:27:33 +02:00
20230527215212_add_descr updates 2023-05-31 20:27:33 +02:00
20230529151917_change_kind_type updates 2023-05-31 20:27:33 +02:00
20230603115339_policies Policies and single-use tokens 2023-06-04 10:03:02 +02:00
20230603121616_add_deleted Policies and single-use tokens 2023-06-04 10:03:02 +02:00
20230603122649_desc Policies and single-use tokens 2023-06-04 10:03:02 +02:00
20230603134135_tokens Policies and single-use tokens 2023-06-04 10:03:02 +02:00
20230603145715_add_keyname Policies and single-use tokens 2023-06-04 10:03:02 +02:00
20230703092203_revokedat lots of things that I forgot to commit 😂 2023-07-06 22:29:31 +02:00
20231105090854_request store requests 2023-11-05 18:29:57 +09:00
20231105091736_method store requests 2023-11-05 18:29:57 +09:00
20231105094428_allowed wip 2023-12-01 11:18:39 +00:00
20231120122522_make_keyname_optional wip 2023-12-01 11:18:39 +00:00
20231218135408_request_result create_account work 2023-12-20 10:21:24 +00:00
20231218135715_key create_account work 2023-12-20 10:21:24 +00:00
20231218140114_ create_account work 2023-12-20 10:21:24 +00:00
20240101221505_user_table user table 2024-01-02 11:12:23 +00:00
20240101221607_add_domain user table 2024-01-02 11:12:23 +00:00
20260530112308_add_token_revoked_at chore(schema): add Token.revokedAt for surgical token revocation (#11) 2026-05-30 13:24:14 +02:00
20260619125847_live_grant_lifecycle_schema feat(schema)(#25): Request.keyUserId + SigningCondition lifecycle for live grant eval 2026-06-19 15:00:33 +02:00
migration_lock.toml initial commit 2023-05-15 20:05:55 +02:00