Fix TypeScript build errors
This commit is contained in:
@@ -29,7 +29,6 @@ model SovereignBank {
|
||||
// Relations
|
||||
accounts BankAccount[]
|
||||
identities SovereignIdentity[]
|
||||
ledgerEntries LedgerEntry[]
|
||||
fxTrades FxTrade[]
|
||||
cbdcIssuance CbdcIssuance[]
|
||||
complianceRecords ComplianceRecord[]
|
||||
@@ -58,8 +57,9 @@ model SovereignBank {
|
||||
// Volume II: Supranational Relations
|
||||
supranationalMemberships SupranationalEntityMember[]
|
||||
// Nostro/Vostro Relations
|
||||
nostroVostroParticipants NostroVostroParticipant[]
|
||||
nostroVostroParticipants NostroVostroParticipant[] @relation("NostroVostroParticipantToSovereignBank")
|
||||
|
||||
bondMarketParticipants BondMarketParticipant[] @relation("BondMarketParticipantToSovereignBank")
|
||||
@@index([sovereignCode])
|
||||
@@index([bic])
|
||||
@@map("sovereign_banks")
|
||||
@@ -1570,7 +1570,6 @@ model CommodityCustodian {
|
||||
cdts CommodityDigitalToken[]
|
||||
|
||||
@@index([custodianId])
|
||||
@@index([approvalStatus])
|
||||
@@map("commodity_custodians")
|
||||
}
|
||||
|
||||
@@ -1643,7 +1642,6 @@ model GlpWithdrawal {
|
||||
@@index([poolId])
|
||||
@@index([sovereignBankId])
|
||||
@@index([withdrawalTier])
|
||||
@@index([approvalStatus])
|
||||
@@map("glp_withdrawals")
|
||||
}
|
||||
|
||||
@@ -1777,7 +1775,7 @@ model SireRoutingDecision {
|
||||
model SireRoutingMetrics {
|
||||
id String @id @default(uuid())
|
||||
metricsId String @unique
|
||||
decisionId String
|
||||
decisionId String @unique
|
||||
fxVolatility Decimal? @db.Decimal(32, 12)
|
||||
liquidityBufferLevel Decimal? @db.Decimal(32, 8)
|
||||
sriScore Decimal? @db.Decimal(32, 8)
|
||||
@@ -4330,8 +4328,6 @@ model InterplanetaryNode {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
relayGrid InterplanetaryRelayGrid[]
|
||||
settlements InterplanetarySettlement[]
|
||||
issuances InterplanetarySSU[]
|
||||
cbdcIssuances InterplanetaryCBDC[]
|
||||
|
||||
@@ -4339,6 +4335,10 @@ model InterplanetaryNode {
|
||||
@@index([planetaryLocation])
|
||||
@@index([sovereignBankId])
|
||||
@@index([status])
|
||||
targetSettlements InterplanetarySettlement[] @relation("TargetSettlement")
|
||||
sourceSettlements InterplanetarySettlement[] @relation("SourceSettlement")
|
||||
targetRelayGrids InterplanetaryRelayGrid[] @relation("TargetNode")
|
||||
sourceRelayGrids InterplanetaryRelayGrid[] @relation("SourceNode")
|
||||
@@map("interplanetary_nodes")
|
||||
}
|
||||
|
||||
@@ -4582,6 +4582,8 @@ model SupraFundNode {
|
||||
@@index([nodeType])
|
||||
@@index([fundType])
|
||||
@@index([status])
|
||||
developmentFundNodes DevelopmentFundNode[]
|
||||
crisisStabilizationNodes CrisisStabilizationNode[]
|
||||
@@map("supra_fund_nodes")
|
||||
}
|
||||
|
||||
@@ -5627,6 +5629,7 @@ model MonetaryUnitConversion {
|
||||
@@index([sourceUnitId])
|
||||
@@index([targetUnitId])
|
||||
@@index([status])
|
||||
realityLayer RealityLayer[]
|
||||
@@map("monetary_unit_conversions")
|
||||
}
|
||||
|
||||
@@ -5971,6 +5974,7 @@ model RealityDivergence {
|
||||
@@index([indexId])
|
||||
@@index([sourceReality, targetReality])
|
||||
@@index([alertLevel])
|
||||
convergence RealityConvergence[]
|
||||
@@map("reality_divergences")
|
||||
}
|
||||
|
||||
@@ -6142,11 +6146,12 @@ model GovernanceTier {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
delegations TierDelegation[]
|
||||
|
||||
@@index([tierId])
|
||||
@@index([tierNumber])
|
||||
@@index([status])
|
||||
toDelegations TierDelegation[] @relation("ToTier")
|
||||
fromDelegations TierDelegation[] @relation("FromTier")
|
||||
@@map("governance_tiers")
|
||||
}
|
||||
|
||||
@@ -7213,6 +7218,7 @@ model HsmnBindingLaw {
|
||||
@@index([sovereignBankId])
|
||||
@@index([identityHash])
|
||||
@@index([status])
|
||||
nexusLayer HsmnNexusLayer[]
|
||||
@@map("hsmn_binding_laws")
|
||||
}
|
||||
|
||||
@@ -7410,7 +7416,7 @@ model SingularityLiquidity {
|
||||
id String @id @default(uuid())
|
||||
liquidityId String @unique
|
||||
generationId String?
|
||||
gapId String?
|
||||
gapId String? @unique
|
||||
liquidityAmount Decimal @db.Decimal(32, 12)
|
||||
generationType String // manual, auto
|
||||
conservationLimit Decimal? @db.Decimal(32, 12)
|
||||
@@ -7513,25 +7519,6 @@ model EconomicHarmonization {
|
||||
@@map("economic_harmonizations")
|
||||
}
|
||||
|
||||
model RealityDivergence {
|
||||
id String @id @default(uuid())
|
||||
divergenceId String @unique
|
||||
convergenceId String?
|
||||
realityId String
|
||||
divergenceAmount Decimal @db.Decimal(32, 12)
|
||||
status String @default("active") // active, minimized, resolved
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
convergence RealityConvergence? @relation(fields: [convergenceId], references: [id], onDelete: SetNull)
|
||||
|
||||
@@index([divergenceId])
|
||||
@@index([convergenceId])
|
||||
@@index([realityId])
|
||||
@@index([status])
|
||||
@@map("reality_divergences")
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Volume XIII: Prime-Reality Oversight Engine (PROE)
|
||||
// ============================================================================
|
||||
@@ -7794,7 +7781,6 @@ model GruBond {
|
||||
|
||||
gruUnit GruUnit @relation(fields: [gruUnitId], references: [id], onDelete: Cascade)
|
||||
coupons GruBondCoupon[]
|
||||
stressTests GruBondStressTest[]
|
||||
// Volume III relations
|
||||
syntheticBonds SyntheticGruBond[] @relation("SyntheticGruBondToGruBond")
|
||||
settlements GruBondSettlement[] @relation("GruBondSettlementToGruBond")
|
||||
@@ -8116,8 +8102,6 @@ model GruIssuance {
|
||||
legalRegistrations GruLegalRegistration[]
|
||||
audits GruIssuanceAudit[]
|
||||
complianceRecords GruComplianceRecord[]
|
||||
allocation GruAllocationRecord?
|
||||
settlementPipeline GruSettlementPipeline?
|
||||
|
||||
@@index([issuanceId])
|
||||
@@index([sovereignBankId])
|
||||
@@ -8127,6 +8111,7 @@ model GruIssuance {
|
||||
@@index([supranationalEntityId])
|
||||
@@index([reserveClass])
|
||||
@@index([regulatoryClass])
|
||||
settlementPipelines GruSettlementPipeline[]
|
||||
@@map("gru_issuances")
|
||||
}
|
||||
|
||||
@@ -8193,8 +8178,6 @@ model GruStressTest {
|
||||
|
||||
regime GruStressRegime? @relation(fields: [regimeId], references: [id], onDelete: SetNull)
|
||||
results GruStressTestResult[]
|
||||
omegaReconciliations GruOmegaLayerReconciliation[]
|
||||
metaverseTests GruMetaverseStressTest[]
|
||||
|
||||
@@index([testId])
|
||||
@@index([stressRegime])
|
||||
@@ -8349,6 +8332,8 @@ model GruReserveAllocation {
|
||||
@@index([reserveId])
|
||||
@@index([sovereignBankId])
|
||||
@@index([status])
|
||||
reserveClass GruSupranationalReserveClass[]
|
||||
pool GruReservePool[]
|
||||
@@map("gru_reserve_allocations")
|
||||
}
|
||||
|
||||
@@ -8455,14 +8440,14 @@ model SupranationalEntity {
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
reservePools GruReservePool[]
|
||||
reserveClasses GruSupranationalReserveClass[]
|
||||
issuances GruIssuance[]
|
||||
members SupranationalEntityMember[]
|
||||
|
||||
@@index([entityId])
|
||||
@@index([entityCode])
|
||||
@@index([entityType])
|
||||
@@index([status])
|
||||
issuances GruIssuance[]
|
||||
reserveClasses GruSupranationalReserveClass[]
|
||||
@@map("supranational_entities")
|
||||
}
|
||||
|
||||
@@ -8528,7 +8513,6 @@ model GruReservePool {
|
||||
|
||||
entity SupranationalEntity? @relation(fields: [entityId], references: [id], onDelete: SetNull)
|
||||
allocations GruReserveAllocation[]
|
||||
withdrawals GruReserveWithdrawal[]
|
||||
settlements GruSupranationalSettlement[]
|
||||
certificates GruReserveCertificate[]
|
||||
|
||||
@@ -8536,37 +8520,11 @@ model GruReservePool {
|
||||
@@index([poolType])
|
||||
@@index([entityId])
|
||||
@@index([status])
|
||||
withdrawals GruReserveWithdrawal[]
|
||||
bonds GruReserveBond[]
|
||||
@@map("gru_reserve_pools")
|
||||
}
|
||||
|
||||
model GruReserveAllocation {
|
||||
id String @id @default(uuid())
|
||||
allocationId String @unique
|
||||
poolId String
|
||||
reserveClassId String
|
||||
sovereignBankId String?
|
||||
entityId String?
|
||||
amount Decimal @db.Decimal(32, 8)
|
||||
currencyCode String?
|
||||
assetType String?
|
||||
allocationType String // initial_allocation, replenishment, crisis_intervention
|
||||
status String @default("pending") // pending, confirmed, failed
|
||||
confirmedAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
pool GruReservePool @relation(fields: [poolId], references: [id], onDelete: Cascade)
|
||||
reserveClass GruSupranationalReserveClass @relation(fields: [reserveClassId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([allocationId])
|
||||
@@index([poolId])
|
||||
@@index([reserveClassId])
|
||||
@@index([sovereignBankId])
|
||||
@@index([entityId])
|
||||
@@index([status])
|
||||
@@map("gru_reserve_allocations")
|
||||
}
|
||||
|
||||
model GruReserveWithdrawal {
|
||||
id String @id @default(uuid())
|
||||
withdrawalId String @unique
|
||||
@@ -8588,7 +8546,6 @@ model GruReserveWithdrawal {
|
||||
@@index([poolId])
|
||||
@@index([sovereignBankId])
|
||||
@@index([entityId])
|
||||
@@index([approvalStatus])
|
||||
@@map("gru_reserve_withdrawals")
|
||||
}
|
||||
|
||||
@@ -8885,7 +8842,6 @@ model GruIssuanceApplication {
|
||||
eligibilityReview GruEligibilityReview?
|
||||
indexValidation GruIndexValidation?
|
||||
allocation GruAllocationRecord?
|
||||
issuance GruIssuance?
|
||||
|
||||
@@index([applicationId])
|
||||
@@index([entityId])
|
||||
@@ -8988,6 +8944,7 @@ model GruSettlementPipeline {
|
||||
@@index([applicationId])
|
||||
@@index([pipelineStage])
|
||||
@@index([status])
|
||||
issuance GruIssuance? @relation(fields: [issuanceId], references: [id], onDelete: SetNull)
|
||||
@@map("gru_settlement_pipelines")
|
||||
}
|
||||
|
||||
@@ -9692,7 +9649,7 @@ model MetaverseAsset {
|
||||
@@index([metaverseNodeId])
|
||||
@@index([assetType])
|
||||
@@index([tokenId])
|
||||
@ @map("metaverse_assets")
|
||||
@@map("metaverse_assets")
|
||||
}
|
||||
|
||||
model MetaverseTokenClass {
|
||||
@@ -9708,7 +9665,7 @@ model MetaverseTokenClass {
|
||||
|
||||
@@index([tokenClassId])
|
||||
@@index([tokenClass])
|
||||
@map("metaverse_token_classes")
|
||||
@@map("metaverse_token_classes")
|
||||
}
|
||||
|
||||
model MetaverseFxTransaction {
|
||||
@@ -9788,7 +9745,7 @@ model DigitalSovereignEconomicZone {
|
||||
@@index([metaverseNodeId])
|
||||
@@index([sovereignBankId])
|
||||
@@index([status])
|
||||
@map("digital_sovereign_economic_zones")
|
||||
@@map("digital_sovereign_economic_zones")
|
||||
}
|
||||
|
||||
model MetaverseRampTransaction {
|
||||
@@ -9820,7 +9777,7 @@ model MetaverseRampTransaction {
|
||||
@@index([rampType])
|
||||
@@index([status])
|
||||
@@index([createdAt])
|
||||
@map("metaverse_ramp_transactions")
|
||||
@@map("metaverse_ramp_transactions")
|
||||
}
|
||||
|
||||
model MetaverseComputeNode {
|
||||
@@ -9847,7 +9804,7 @@ model MetaverseComputeNode {
|
||||
@@index([regionId])
|
||||
@@index([metaverseNodeId])
|
||||
@@index([status])
|
||||
@map("metaverse_compute_nodes")
|
||||
@@map("metaverse_compute_nodes")
|
||||
}
|
||||
|
||||
model MetaverseConsistencyCheck {
|
||||
@@ -9872,7 +9829,7 @@ model MetaverseConsistencyCheck {
|
||||
@@index([dsezId])
|
||||
@@index([consistencyStatus])
|
||||
@@index([checkedAt])
|
||||
@map("metaverse_consistency_checks")
|
||||
@@map("metaverse_consistency_checks")
|
||||
}
|
||||
|
||||
// Sub-Volume D: Edge/Last-Mile GPU for Metaverse in 325 Regions over 6G
|
||||
@@ -10050,7 +10007,6 @@ model SystemRecommendation {
|
||||
|
||||
audit GapAudit @relation(fields: [auditId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([recommendationId])
|
||||
@@index([auditId])
|
||||
@@index([recommendationType])
|
||||
@@index([priority])
|
||||
@@ -10100,9 +10056,10 @@ model SyntheticGruBond {
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
bond GruBond? @relation("SyntheticGruBondToGruBond", fields: [bondId], references: [bondId], onDelete: SetNull)
|
||||
settlements GruBondSettlement[]
|
||||
pricingHistory BondPricingHistory[]
|
||||
riskAssessments BondRiskAssessment[]
|
||||
pricing GruBondPricing[] @relation("GruBondPricingToSynthetic")
|
||||
pricingHistory BondPricingHistory[] @relation("BondPricingHistoryToSynthetic")
|
||||
settlements GruBondSettlement[] @relation("GruBondSettlementToSynthetic")
|
||||
riskAssessments BondRiskAssessment[] @relation("BondRiskAssessmentToSynthetic")
|
||||
|
||||
@@index([syntheticBondId])
|
||||
@@index([instrumentType])
|
||||
@@ -10149,7 +10106,7 @@ model BondMarketParticipant {
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
market GruBondMarket @relation(fields: [marketId], references: [id], onDelete: Cascade)
|
||||
sovereignBank SovereignBank? @relation(fields: [sovereignBankId], references: [id], onDelete: SetNull)
|
||||
sovereignBank SovereignBank? @relation("BondMarketParticipantToSovereignBank", fields: [sovereignBankId], references: [id], onDelete: SetNull)
|
||||
|
||||
@@index([participantId])
|
||||
@@index([marketId])
|
||||
@@ -10693,7 +10650,7 @@ model NostroVostroParticipant {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
sovereignBank SovereignBank? @relation(fields: [sovereignBankId], references: [id], onDelete: SetNull)
|
||||
sovereignBank SovereignBank? @relation("NostroVostroParticipantToSovereignBank", fields: [sovereignBankId], references: [id], onDelete: SetNull)
|
||||
accounts NostroVostroAccount[]
|
||||
transfers NostroVostroTransfer[] @relation("TransferFromParticipant")
|
||||
transfersTo NostroVostroTransfer[] @relation("TransferToParticipant")
|
||||
|
||||
Reference in New Issue
Block a user