CREATE TABLE sims (sim_id TEXT, customer_id TEXT, coverage_zone TEXT);
All actual billing will be by hand for now, but we do need to know which user owns which sim at least.
Maybe just track in the cryptpad in a spreadsheet while it’s manual, honestly
New “overage limit” style limit in the plan settings for max data top up charge in any month, $34.95 min or 0 to never refill
When you get down to 100 MB we bill you for 5GB
$9.99 eSIM activation, $39.99 physical SIM. comes with a free 1GB and first year annual fee included.
cron every 15 mins or so to page though all lines and check data usage, if under 100MB then check if they allow in their plan settings to buy more, if yes buy more (may need to auto-top-up more than their auto top up amount, but not more than the purchase amount) and if not or not enough balance then notify them.
This job could also warn when data is getting low.
need command to activate new sim. for esim we bill you and show QR code. For physical sim either stock levels or infinite wait list. If they don’t have enough balance could do direct billing here instead of forcing them to manual top up.
Then need to tweak registration flow to allow registering for sim only without number if desired.