perf(server): opmitize updates table

This commit is contained in:
forehalo
2023-10-24 17:33:24 +08:00
parent fd6536ea90
commit ef1228dcb4
3 changed files with 19 additions and 7 deletions

View File

@@ -143,16 +143,14 @@ model Snapshot {
@@map("snapshots")
}
// backup during other update operation queue downtime
model Update {
objectId String @id @default(uuid()) @map("object_id") @db.VarChar
workspaceId String @map("workspace_id") @db.VarChar
id String @map("guid") @db.VarChar
seq Int @db.Integer
blob Bytes @db.ByteA
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(6)
@@unique([workspaceId, id, seq])
@@id([workspaceId, id, seq])
@@map("updates")
}