This commit is contained in:
@@ -2996,3 +2996,38 @@ model UnreportedSignatureDaily {
|
||||
@@id([generationId, dimensionKey])
|
||||
@@index([businessDate, generationId, messageCount])
|
||||
}
|
||||
|
||||
|
||||
model HomeProjectionState {
|
||||
id String @id
|
||||
version Int @default(0)
|
||||
seededDay String?
|
||||
initialized Boolean @default(false)
|
||||
lastError String?
|
||||
updatedAt DateTime @default(now())
|
||||
}
|
||||
model HomeProjectionDirty {
|
||||
messageRecordId String @id
|
||||
enqueuedAt DateTime @default(now())
|
||||
@@index([enqueuedAt])
|
||||
}
|
||||
model HomeMessageFact {
|
||||
messageRecordId String
|
||||
fromVersion Int
|
||||
toVersion Int?
|
||||
queuedDay String
|
||||
payload Json
|
||||
@@id([messageRecordId, fromVersion])
|
||||
@@index([queuedDay, toVersion])
|
||||
@@index([toVersion])
|
||||
}
|
||||
model HomeSnapshot {
|
||||
id String @id
|
||||
userId String
|
||||
businessDate String
|
||||
version Int
|
||||
createdAt DateTime @default(now())
|
||||
expiresAt DateTime
|
||||
summary Json
|
||||
@@index([expiresAt])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user