panels-origin/db/core/changesets
Cursor Agent 8717c00a83
Refactor payroll_http and excel to use core RPC functions
- Replace db.prepare() in payroll_http with callCoreFn for attendance,
  loans, loan receipts, and legacy payroll period routes
- Use respondRpc/respondApiError for standardized HTTP responses
- Add fn_loan_list/get, fn_loan_payment_get, and fn_payroll_period_* RPCs
  to 013-rpc-payroll.sql with grants
- Refactor excel storeDocument to fn_worker_document_store (S3 stays in TS)
- Refactor importExcel and upsertWorker to fn_workers_import_batch

Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>
2026-09-03 23:57:56 +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
006-rpc-infra.sql Refactor payroll_http and excel to use core RPC functions 2026-09-03 23:57:56 +00:00
007-rpc-catalogs.sql Refactor payroll_http and excel to use core RPC functions 2026-09-03 23:57:56 +00:00
008-rpc-companies.sql Add PostgreSQL RPC functions for companies CRUD 2026-09-03 23:48:29 +00:00
009-rpc-projects.sql Add PostgreSQL RPC functions for projects domain (009-rpc-projects) 2026-09-03 23:48:40 +00:00
010-rpc-workers.sql Add PostgreSQL RPC functions for workers domain 2026-09-03 23:52:05 +00:00
011-rpc-budget.sql Add budget and badge RPC functions (changesets 011-012) 2026-09-03 23:50:46 +00:00
012-rpc-badges.sql Add budget and badge RPC functions (changesets 011-012) 2026-09-03 23:50:46 +00:00
013-rpc-payroll.sql Refactor payroll_http and excel to use core RPC functions 2026-09-03 23:57:56 +00:00
014-rpc-import.sql Add payroll and import RPC changesets (013, 014) 2026-09-03 23:52:42 +00:00