| 1 | -- A month's final count of a source billing measures as a running total |
| 2 | -- (git operations, src/storage.rs `measure_last_month_git`), taken once |
| 3 | -- the month is over. Until it is here, last month's metered usage is not |
| 4 | -- charged and the month is not closed (`last_month_final`): the daily |
| 5 | -- measure ran hours before the month ended, so charging on it left out |
| 6 | -- the operations of the month's last hours. After three days without it |
| 7 | -- the close goes ahead regardless, logged, so an outage of the repos |
| 8 | -- service never holds every invoice. |
| 9 | CREATE TABLE IF NOT EXISTS measured_months ( |
| 10 | source TEXT NOT NULL, |
| 11 | -- YYYY-MM. |
| 12 | month TEXT NOT NULL, |
| 13 | measured_at TEXT NOT NULL, |
| 14 | PRIMARY KEY (source, month) |
| 15 | ); |