feat(core): add pinned collections to all docs (#12269)

This commit is contained in:
EYHN
2025-05-14 18:18:43 +09:00
committed by GitHub
parent 6eab1a6cb2
commit 61b99c5934
16 changed files with 558 additions and 47 deletions

View File

@@ -42,6 +42,10 @@ export const AFFiNE_WORKSPACE_DB_SCHEMA = {
isDeleted: f.boolean().optional(),
// we will keep deleted properties in the database, for override legacy data
},
pinnedCollections: {
collectionId: f.string().primaryKey(),
index: f.string(),
},
} as const satisfies DBSchemaBuilder;
export type AFFiNEWorkspaceDbSchema = typeof AFFiNE_WORKSPACE_DB_SCHEMA;