Security Management PWA foundation

A secure, offline-capable security operations platform

This scaffold sets up the production-first base for Super Admin, Company Admin, and Guard workflows with PWA support, role-aware layouts, and a Supabase-ready multi-tenant architecture.

Security first

RLS-ready multi-tenant data model with role-aware routes and audit-first workflows.

Mobile PWA

Guard screens are built for phones, with offline queue scaffolding and install support.

Supabase-ready

Server and browser clients are wired for authentication and private storage patterns.

Evidence workflow

Vehicle entry, OCR correction, image compression, and verification flow foundations.

Offline queue ready

Client-side queueing is scaffolded so guard actions can keep moving when the network drops.

Audit-friendly

Sensitive actions are designed to be append-only and traceable from the backend schema onward.

Multi-company isolation

Every tenant-owned table is planned with `company_id` and RLS policies in the migration layer.