ERP-node/backend-node/src/middleware
kjs 3982aabc24 refactor: Enhance unique constraint validation across data operations
- Integrated `TableManagementService` to validate unique constraints before insert, update, and upsert actions in various controllers, including `dataflowExecutionController`, `dynamicFormController`, and `tableManagementController`.
- Improved error handling in `errorHandler` to provide detailed messages indicating which field has a unique constraint violation.
- Updated the `formatPgError` utility to extract and display specific column labels for unique constraint violations, enhancing user feedback.
- Adjusted the table schema retrieval to include company-specific nullable and unique constraints, ensuring accurate representation of database rules.

These changes improve data integrity by preventing duplicate entries and enhance user experience through clearer error messages related to unique constraints.
2026-03-10 16:15:20 +09:00
..
authMiddleware.ts feat: Add express-async-errors for improved error handling 2026-02-12 11:42:52 +09:00
errorHandler.ts refactor: Enhance unique constraint validation across data operations 2026-03-10 16:15:20 +09:00
permissionMiddleware.ts 각 회사별 데이터 분리 2025-10-27 16:40:59 +09:00
superAdminMiddleware.ts phase 2.3 테이블 및 컬럼 동적생성기능 변경 2025-09-30 18:28:54 +09:00