g1t/services/billing/migrations/0032_workspace_value.sql

5 lines371 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.

Margin alerts measure what is sold, and say dollars when a percentage would mislead1-- What each workspace's usage was priced at (cost plus 20%), whoever paid
2-- for it: the trial, a gift, the plan's included usage or a card. The
3-- cost-over-revenue alert compares cost with this, so a giveaway is not
4-- mistaken for a price below cost; revenue_micros stays the cash paid.
5ALTER TABLE workspace_costs ADD COLUMN value_micros INTEGER NOT NULL DEFAULT 0;