Merge pull request #4709 from toeverything/61/doc-perf

perf(server): opmitize updates table
This commit is contained in:
LongYinan
2023-10-30 09:27:19 +00:00
committed by GitHub
3 changed files with 19 additions and 7 deletions
+1 -3
View File
@@ -146,16 +146,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")
}