feat: implement fund application process with admin review and user submission

This commit is contained in:
2026-03-20 20:58:09 -04:00
parent cd8e23747b
commit c6a0cf51a9
8 changed files with 565 additions and 18 deletions
+16 -6
View File
@@ -22,13 +22,14 @@ model User {
isFund Boolean @default(false)
isHidden Boolean @default(false) // hidden from leaderboards and public listings
positions Position[]
trades Trade[]
passwordResets PasswordReset[]
managedFunds FundManager[]
fund HedgeFund?
fundInvestments FundInvestment[]
positions Position[]
trades Trade[]
passwordResets PasswordReset[]
managedFunds FundManager[]
fund HedgeFund?
fundInvestments FundInvestment[]
portfolioHistory UserPortfolioHistory[]
fundApplication FundApplication?
}
model HedgeFund {
@@ -213,3 +214,12 @@ enum TradeType {
FUND_INVEST // invested cash into a hedge fund
FUND_REDEEM // redeemed shares from a hedge fund
}
model FundApplication {
id String @id @default(cuid())
userId String @unique
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
fundName String
reason String
createdAt DateTime @default(now())
}