Platform core
Shared SaaS platform core — tenancy, login, roles, payments, notifications, API · 8 modules, 33 requirements — and the recommended stack.
Platform core requirements.
The software is built on a shared multi-tenant SaaS core so that the other projects can plug into it. If a core from another project of the product owner already exists, reuse it; if not, build it as part of this project.
| ID | Requirement |
|---|---|
| CORE-01Multi-tenancy & editions | |
| CORE-01.1 | The software is built as a module on a shared multi-tenant SaaS core: one tenant, one login, one customer/user/product master, one invoice. |
| CORE-01.2 | Strict tenant isolation (tenant_id on every row + row-level security, or schema-per-tenant). No query may cross tenants. |
| CORE-01.3 | Feature flags per tenant for plan tiers (Starter / Professional / Premium / Enterprise) and per edition (e.g. Clinic vs Hospital). |
| CORE-01.4 | Branches / outlets / properties as a first-class concept wherever the industry needs them. |
| CORE-02Identity & access | |
| CORE-02.1 | Sign-in with email + password, mobile OTP and Google/Microsoft; 2FA (TOTP) optional, enforced on Premium. |
| CORE-02.2 | Role-based access with default roles per product and custom roles on Professional and above; field-level restrictions for sensitive data. |
| CORE-02.3 | SSO (SAML 2.0 / OIDC) and full audit logs on Premium. |
| CORE-02.4 | Customer, vendor and guest portals use separate scoped accounts. |
| CORE-03Shared engines | |
| CORE-03.1 | Workflow and approvals (multi-level, amount-based), reusable by every module. |
| CORE-03.2 | Document templates with merge fields → PDF (invoices, letters, vouchers, report cards). |
| CORE-03.3 | Notifications: email, SMS, WhatsApp Business API, push — templated, logged with delivery status. |
| CORE-03.4 | Files: S3-compatible storage, signed URLs, virus scan, image resizing. |
| CORE-03.5 | Reports: list views with filters, saved views, export to Excel/CSV/PDF, scheduled email. |
| CORE-04Billing & money | |
| CORE-04.1 | INR and USD; GST-compliant invoices (GSTIN, HSN/ SAC, place of supply, CGST/SGST/IGST). |
| CORE-04.2 | Payment gateways: Razorpay (primary, India), Stripe and PayPal (international); UPI QR. |
| CORE-04.3 | Every money movement posts to the shared ledger used by the accounting & billing module; Tally Prime export. |
| CORE-04.4 | Numbering series per branch and financial year; no deletion of posted documents — reversal only. |
| CORE-05Mobile apps | |
| CORE-05.1 | Android and iOS apps on every plan. One app shell per product family or per product — developer to propose. |
| CORE-05.2 | Offline capture where the job demands it: restaurant billing, site DPR, gate entry, event check-in, attendance. |
| CORE-05.3 | Push notifications, camera (photos, QR), GPS; works on mid-range Android (3 GB RAM, Android 10+). |
| CORE-06API & integrations | |
| CORE-06.1 | REST API with OpenAPI spec for every module; webhooks for key events (order placed, payment received, status changed). |
| CORE-06.2 | API keys and OAuth clients per tenant, rate limited; available on Premium. |
| CORE-06.3 | Zapier app and import/export by CSV/Excel for every master. |
| CORE-07Security & compliance | |
| CORE-07.1 | TLS 1.2+ in transit, AES-256 at rest; secrets in a vault, never in code. |
| CORE-07.2 | Hosting: India (Mumbai region) by default; EU and US regions for Premium. |
| CORE-07.3 | DPDP Act 2023: consent capture, purpose, data export and deletion on request, breach logging. |
| CORE-07.4 | OWASP Top 10 tested; dependency scanning in CI; controls must support an ISO 27001 audit. |
| CORE-07.5 | Daily backups, 30-day retention, point-in-time restore; tested restore each quarter. |
| CORE-08Non-functional targets | |
| CORE-08.1 | 99.9% uptime for Premium (contracted SLA). |
| CORE-08.2 | P95 page/API response under 500 ms for list and detail views at 1M rows per tenant table. |
| CORE-08.3 | Responsive web for 360 px to 1920 px; WCAG 2.1 AA on customer-facing screens. |
| CORE-08.4 | English first; i18n-ready strings (Hindi and Tamil as first additional languages). |
| CORE-08.5 | Data export of everything a tenant owns at any time. |
The stack.
Node.js (NestJS) or PHP (Laravel 11) — modular monolith, one module per product, shared core
PostgreSQL 16 with row-level security; Redis for cache, sessions and queues
React / Next.js with a shared component library across all products
Flutter or React Native — one codebase for Android and iOS, offline store (SQLite)
S3-compatible object storage + CDN; transcoding service for the system
PostgreSQL full-text to start; OpenSearch/Meilisearch when catalogues grow
Docker, CI/CD (GitHub Actions), staging + production, IaC; India region primary
Error tracking, uptime checks, structured logs, status page feed for status.html
A recommendation only. The partner may propose an alternative in the architecture note, provided it meets every CORE requirement and the product owner keeps full ownership of the code.