AGENTS.md@tests/apps/real-estate · git:20261026.cb2ddc9 · 2026-10-26 · sha256 3a156e1d16cd10f1
AGENTS.md@tests/apps/real-estate git:20261026.cb2ddc9A
Immutable. This exact content never changes and is served at /api/v1/blob/3a156e1d16cd10f1.
# Working on this app A Protobase app: each resource's data config in `config/<name>/data.ts` and its screens in `config/<name>/ui.ts`, all exported from `config/index.ts`, over a Postgres database. Reference: https://docs.protobase.net. ## Database changes - Every schema change is a new migration file in `db/migrations/`, numbered after the last one (`007_viewings.sql`). Never edit or remove a migration that exists: it has already run on the live database. - Expand only, where possible: add tables, columns and indexes, and keep what the running app still reads. Rename or drop only when asked to, once nothing uses it. - A new table gets `organization_id integer not null references core.organizations (id)`, like the others; everyone works in organization 1 (`auth/auth.ts`). ## Never touch - `auth/` and the `auth` schema: sign-in and accounts. - `.github/workflows/`. ## Scripts The platform runs `db:migrate` (the auth schema's migrations included), `typecheck` and `test`, with their settings in the environment: keep them working. Run `typecheck` and `test` before you finish. `db:seed:base` loads the amenities and organization 1, and `db:seed` the sample data, replacing everything in the app's tables.