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

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

No files matched your search

@@ -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(),