Skip to content

feat: add Payout model to Prisma schema (#244) - #365

Merged
MissBlue00 merged 2 commits into
MissBlue00:mainfrom
queenfrostbite:issue-244-payout-model
Jul 29, 2026
Merged

feat: add Payout model to Prisma schema (#244)#365
MissBlue00 merged 2 commits into
MissBlue00:mainfrom
queenfrostbite:issue-244-payout-model

Conversation

@queenfrostbite

@queenfrostbite queenfrostbite commented Jul 29, 2026

Copy link
Copy Markdown

Closes #244

  • Added PayoutStatus enum: PENDING, PROCESSING, COMPLETED, FAILED, CANCELLED
  • Added Payout model with fields: id, merchantId, amount, currency, destinationAddress, status, txHash (nullable), errorMessage (nullable), timestamps
  • Added payouts relation to Merchant
  • Also restored missing EscrowTransaction model that was accidentally dropped during Subscription schema merge — the Merchant already had escrows EscrowTransaction[] relation but the model was missing, causing validation errors.

Conventions followed: @db.Uuid, @map("snake_case"), @@map("plural_snake_case"), Cascade deletes, index on (merchantId, status).

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@sagesan2580 is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@queenfrostbite 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

@MissBlue00
MissBlue00 merged commit 71c4e2d into MissBlue00:main Jul 29, 2026
0 of 4 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

Development

Successfully merging this pull request may close these issues.

Add Payout model to Prisma schema

3 participants