Description
The backend needs its relational schema defined so it can properly index the events emitted by the Soroban payout registry.
Acceptance Criteria
Technical Details
- Map the
totalBudget and amount fields to Strings or BigInts in Postgres to prevent JavaScript from rounding large Stroop values.
Description
The backend needs its relational schema defined so it can properly index the events emitted by the Soroban payout registry.
Acceptance Criteria
packages/backend(npx prisma init).Organizationmodel (id, adminAddress, name, totalBudget).Maintainermodel (address, totalEarned).PayoutEventmodel (txHash, orgId, maintainerAddress, amount, type: 'ALLOCATED' | 'CLAIMED', timestamp).Technical Details
totalBudgetandamountfields to Strings or BigInts in Postgres to prevent JavaScript from rounding large Stroop values.