mirror of
https://github.com/hanzoai/commerce.git
synced 2026-11-23 10:57:12 +00:00
models/limit holds one row per (scope, name): scope "org:<org>" or "plan:<slug>", the value (-1 for no bound, 0 for none), the reason and who set it, in the platform namespace the plan authority and the rate book use. The row is found by its slug, "<scope>/<name>", which Bind derives. An empty store changes nothing: the value where no row is set stays the one the enforcing code compiles in. Which names may be set, and their ranges, belong to the caller's registry, not to this package. Kind "limit" takes hashid 294. Claude-Session: https://claude.ai/code/session_016DKtyuzxU43Gsc6Pm9vKTF