panels-origin/db/core/changesets
Cursor Agent 02098d37b3
Add PostgreSQL RPC functions for companies CRUD
Implement fn_company_list, fn_company_get, fn_company_get_by_code,
fn_company_create, fn_company_update, and fn_next_company_code with
shared validation helpers mirroring api/companies.ts logic. Uses RPC
envelope helpers from 006-rpc-infra.sql with detailed Spanish error
messages and GRANT EXECUTE for panels_core_app.

Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>
2026-09-03 23:48:29 +00:00
..
001-baseline.sql db: migrar infraestructura de BD a Postgres (fase 0-1) 2026-09-02 20:00:49 +00:00
002-tenant-settings.sql db: migrar infraestructura de BD a Postgres (fase 0-1) 2026-09-02 20:00:49 +00:00
003-seed-catalogs.sql db: migrar infraestructura de BD a Postgres (fase 0-1) 2026-09-02 20:00:49 +00:00
004-seed-dev-data.sql db: migrar infraestructura de BD a Postgres (fase 0-1) 2026-09-02 20:00:49 +00:00
005-rls.sql db: migrar infraestructura de BD a Postgres (fase 0-1) 2026-09-02 20:00:49 +00:00
008-rpc-companies.sql Add PostgreSQL RPC functions for companies CRUD 2026-09-03 23:48:29 +00:00