# Shared Online Data Requirement

Production must use a single backend API and a single PostgreSQL database.

Correct production flow:

```text
User browser -> PSP Radar backend API -> Shared PostgreSQL DATABASE_URL
```

Do not use local storage or local JSON as production source of truth.

Sprint 3 implements:

```text
DATA_MODE=postgres
server-postgres.js
PostgreSQL-backed API routes
```

This means:

- A portal submission from one user is visible to all admins.
- An admin approval updates the shared database.
- Public users see the same approved data after refresh.
- Ads and content review are shared globally.

