feat(server): impl doc history (#5004)

This commit is contained in:
liuyi
2023-11-22 07:56:59 +00:00
parent 946b7b4004
commit d1476495ae
18 changed files with 783 additions and 35 deletions

View File

@@ -219,12 +219,12 @@ model Update {
model SnapshotHistory {
workspaceId String @map("workspace_id") @db.VarChar(36)
id String @map("guid") @db.VarChar(36)
seq Int @db.Integer
timestamp DateTime @db.Timestamptz(6)
blob Bytes @db.ByteA
state Bytes? @db.ByteA
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(6)
expiredAt DateTime @map("expired_at") @db.Timestamptz(6)
@@id([workspaceId, id, seq])
@@id([workspaceId, id, timestamp])
@@map("snapshot_histories")
}