OMA: Lamoi WaaS products, provisioning, limits and lifecycle
Imported from GitHub issue El-SaMa/oma#174 by @El-SaMa.
Tasks
- Data model:
waas_sites(org, service, network, blog_id, primary domain, plan, status, created_by job) with migrations. - Catalog products: "Lamoi Site" and "Lamoi Shop" plans (prices set by the operator, not in code); limits per plan: storage quota, number of pages or products if any, AI edits per month (TEKORI credits), optional plugins allowed, custom domain allowed.
- Order → provision: create the subsite (from a template, via the connector's network token), link to the org and service, mint tokens, start the TEKORI build if ordered with a brief.
- Payment rules: consumers prepay (card, credits, auto top-up); invoices only for businesses.
- Optional licence-fee line for shop plans if the operator chooses per-site WoodMart licences.
- Lifecycle: unpaid → suspended (branded page, content kept) → archived after N days → deleted after retention with final backup; reactivation path.
- Portal "My site" page (UI part of El-SaMa/lamoi-waas#9).
- Hooks: uptime monitor auto-created (El-SaMa/lamoi-waas#21), Site Insights link (El-SaMa/lamoi-waas#22), Backsies schedule (#175).
Acceptance criteria
- End to end on staging: order a Site plan as a consumer test account, subsite appears, suspension and reactivation work.
Depends on
El-SaMa/lamoi-waas#15, #173.
Plan key W19. Epic: El-SaMa/lamoi-waas#25.