add some fund graph history for transparency
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m22s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m22s
This commit is contained in:
@@ -41,6 +41,7 @@ model HedgeFund {
|
||||
|
||||
managers FundManager[]
|
||||
investments FundInvestment[]
|
||||
navHistory FundNavHistory[]
|
||||
|
||||
@@index([slug])
|
||||
}
|
||||
@@ -131,6 +132,17 @@ model PriceHistory {
|
||||
@@index([hashtagId, recordedAt])
|
||||
}
|
||||
|
||||
model FundNavHistory {
|
||||
id String @id @default(cuid())
|
||||
fundId String
|
||||
fund HedgeFund @relation(fields: [fundId], references: [id], onDelete: Cascade)
|
||||
nav Float
|
||||
totalValue Float
|
||||
recordedAt DateTime @default(now())
|
||||
|
||||
@@index([fundId, recordedAt])
|
||||
}
|
||||
|
||||
model Position {
|
||||
id String @id @default(cuid())
|
||||
userId String
|
||||
|
||||
Reference in New Issue
Block a user