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