Fix TypeScript build errors

This commit is contained in:
defiQUG
2026-01-02 20:27:42 -08:00
parent 849e6a8357
commit d4fb8e77cb
295 changed files with 18595 additions and 1391 deletions

27
PRISMA_FIXES_SUMMARY.md Normal file
View File

@@ -0,0 +1,27 @@
# Prisma Schema Fixes - Summary
## Progress: Reduced from 27+ errors to ~10 errors
### Fixed ✅
1. All `@map``@@map` syntax errors
2. Removed duplicate models (RealityDivergence, GruReserveAllocation)
3. Removed references to missing models
4. Fixed SyntheticGruBond relations
5. Fixed InterplanetaryNode relations
6. Fixed GovernanceTier relations
7. Removed SovereignBank.ledgerEntries (LedgerEntry doesn't reference SovereignBank)
8. Fixed BondMarketParticipant.sovereignBank relation name
9. Added missing opposite relations for SupranationalEntity, GruReserveAllocation, GruReservePool
10. Removed GruIssuance.applications (GruIssuanceApplication doesn't have issuanceId)
11. Fixed NostroVostroParticipant.sovereignBank relation name
### Remaining Issues (~10 errors)
These require careful handling because some relations may need different approaches:
- One-to-one relation constraints (need @unique)
- Constraint name conflicts
- Relations that may need to be removed or restructured
- Some relations may be defined incorrectly in the schema
The schema has been significantly improved and is much closer to full validation.