add some fund graph history for transparency
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m22s

This commit is contained in:
2026-03-19 15:59:47 -04:00
parent 5e9421801e
commit 9a87c0c7c5
5 changed files with 112 additions and 6 deletions
+12
View File
@@ -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