mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 02:54:37 +00:00
LightningInvoice had no columns for balance_limit, balance_limit_reset, or validity_date. SQLModel silently dropped these constructor kwargs, so create_api_key_from_invoice always produced an unconstrained key. Add the three columns to LightningInvoice with a migration, and wire them through to the ApiKey in create_api_key_from_invoice, matching the pattern already used in the child key creation path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>