# Architecture

FieldOps Cloud uses a Yii3-friendly Controller -> Service -> Repository -> Database flow. Modules live under `src/`, templates under `templates/`, schema under `database/`, and public web entry under `public/`.

The platform is structured as a tenant-safe SaaS product for trade businesses. Auth uses session login for web, hashed API tokens for REST, server-side RBAC, tenant ownership columns, audit logs, CSRF forms, and escaped Bootstrap 5 templates. SaaS workspace, plan, subscription, billing event, invitation, usage, and feature-flag contracts are documented in `docs/SAAS_PLATFORM.md`.

Handover files requested by the owner were not found in current project.
