# legacy-postgres: the old Postgres implementation (not built)

The admin panel no longer has a database. Every page and action now calls the
Laravel blog CMS API (`LARAVEL_API_URL`, see `src/lib/cms/api.ts`).

This folder keeps the Prisma/Postgres version for reference. It is excluded
from the app's TypeScript, ESLint and Prettier, and nothing imports it:

- `prisma/`: the schema and migration the Laravel tables are modelled on
  (docs/laravel-blog-api.md §5, §16).
- `src/features/blogs/actions.ts`, `service.ts`: the save state machine
  Laravel ports (§8.3).
- `src/features/public-api/`, `src/app/api/v1/`: the public API contract (§7).
- `src/features/blog-import/service.ts`: the JSON import rules (§8.7).
- `src/lib/site.ts`: preview tokens and website cache refresh (§11, §12).
- `scripts/`: the WordPress importer (`--export-json` wrote
  `wordpress-import/blog-export.json`), `import-json`, `link-export-images`
  and `create-admin`. They need the old database and won't run as they are.

Delete the folder once the Laravel port is finished and nobody needs it.
