Skip to content

fix(backend): add vault, allocation, tenant and transaction fields to Prisma schema - #1413

Merged
Junirezz merged 2 commits into
Junirezz:mainfrom
godamongstmen897:fix/prisma-vault-allocation-tenant-fields
Sep 28, 2026
Merged

Junirezz merged 2 commits into
Junirezz:mainfrom
godamongstmen897:fix/prisma-vault-allocation-tenant-fields

Conversation

@godamongstmen897

Copy link
Copy Markdown

Summary

Adds the Prisma models and fields that exposureGuardrails.ts, operationalMetrics.ts and middleware/tenantBoundary.ts already query, so the generated client exposes them.

  • New models: Vault, Strategy, Allocation, ExposureBreach, WalletTenantAssociation
  • Transaction: adds vaultId, tenantId, latencyMs, failureReason (all nullable) plus a (vaultId, tenantId, timestamp DESC) index
  • Migration 20260925000000_add_vault_allocation_tenant_fields (additive only)

Closes #1306
Closes #1307
Closes #1308
Closes #1309

Copilot AI lite review requested due to automatic review settings September 25, 2026 15:48
@drips-wave

drips-wave Bot commented Sep 25, 2026

Copy link
Copy Markdown

@godamongstmen897 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Junirezz
Junirezz merged commit 06109ff into Junirezz:main Sep 28, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants