feat(infra): orm f.enum() support (#9323)

This commit is contained in:
CatsJuice
2024-12-31 03:44:58 +00:00
parent 9c119e6505
commit 7c41775c7f
4 changed files with 36 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ export const AFFiNE_WORKSPACE_DB_SCHEMA = {
id: f.string().primaryKey().optional().default(nanoid),
name: f.string().optional(),
type: f.string(),
show: f.string().optional(),
show: f.enum('always-show', 'always-hide', 'hide-when-empty').optional(),
index: f.string().optional(),
icon: f.string().optional(),
additionalData: f.json().optional(),