docs/codebase-map.json before editing database logic.
Known data concepts
Safe edit rules
- Preserve
org_idon workspace data. - Preserve foreign key relationships.
- Preserve RLS policies.
- Migrate data before removing fields.
- Keep API payload fields backward compatible.
Before changing tables
- Read migrations.
- Search all reads and writes for the table.
- Confirm RLS policy impact.
- Add migration and rollback plan.
- Update docs after source changes.