g1t/services/billing/migrations/0035_cf_subscriptions.sql

9 lines362 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Costs: Cloudflare's subscriptions read from Cloudflare each day, the estimate only until then; sudo's costs split into Costs & margin and Bill & pricing1-- Cloudflare's subscriptions (Workers Paid, add-ons), as last read from
2-- Cloudflare: what g1t pays each month whatever it uses. One row; detail
3-- is each subscription's name and monthly micros, as JSON.
4CREATE TABLE IF NOT EXISTS cf_subscriptions (
5 id TEXT PRIMARY KEY,
6 monthly_micros INTEGER NOT NULL,
7 detail TEXT NOT NULL,
8 read_at TEXT NOT NULL
9);