feat: implement fund application process with admin review and user submission
This commit is contained in:
+16
-6
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user