g1t/services/billing/migrations/0005_limits.sql
| 1 | -- Per-workspace limits on usage not yet paid for. A row only exists when |
| 2 | -- g1t set a ceiling by hand or an owner set a spend limit; everything |
| 3 | -- else is worked out from the ledger. See src/limits.rs. |
| 4 | CREATE TABLE limits ( |
| 5 | workspace TEXT PRIMARY KEY, |
| 6 | -- Set by g1t after a review; replaces the ceiling trust would give. |
| 7 | ceiling_micros INTEGER, |
| 8 | -- The owner's own monthly limit, under g1t's. |
| 9 | spend_limit_micros INTEGER, |
| 10 | updated_at TEXT NOT NULL |
| 11 | ); |