metallkart-erp/prisma
louis de5e4de0f9 fix(backend): resolve all 23 TypeScript errors — 2 real bugs found (SPEC-BACKEND-FIX-TS)
8 error categories fixed across 11 files:
- TenderStatus enum: added CANCELLED (real bug — order cancel crashed for tenders)
- creatorId→createdById: 6 sites in copilot engagement tools (real bug — ownership checks always false)
- Order.constructor Prisma 5 clash: removed select constraints in estimates+labor-report
- Prisma Json null: DbNull for Json? fields, InputJsonValue for Record<string,unknown>
- Anthropic SDK ContentBlock: TextBlock→TextBlockParam, ToolUseBlock→ToolUseBlockParam
- Role[] vs Role: estimates.service approveFinancial+delete accept union type
- ActionValueClass: string→enum in discharge-kpi CatalogEntry
- SendEmailOptions: added required html field in claim-draft

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 22:48:15 +04:00
..
migrations Initial commit: ERP skeleton + CLAUDE.md 2026-03-09 09:10:16 +00:00
seeds feat(calendar): add PublicHoliday model + seed 2026 (18 official Russian holidays) 2026-04-24 17:32:34 +03:00
sql feat(agent-august): M0A - Prisma models + pgvector foundations 2026-05-19 21:14:58 +04:00
schema.prisma fix(backend): resolve all 23 TypeScript errors — 2 real bugs found (SPEC-BACKEND-FIX-TS) 2026-07-01 22:48:15 +04:00