feat: improve workspace list perf

This commit is contained in:
DarkSky
2025-12-31 22:59:52 +08:00
parent bc03fab649
commit 20c4951847
4 changed files with 43 additions and 4 deletions
+2
View File
@@ -273,6 +273,8 @@ model Snapshot {
workspaceId String @map("workspace_id") @db.VarChar
id String @default(uuid()) @map("guid") @db.VarChar
blob Bytes @db.ByteA
// persisted size of blob to avoid summing over bytea
size BigInt? @map("size") @db.BigInt
state Bytes? @db.ByteA
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
// the `updated_at` field will not record the time of record changed,