feat: enhance folder indexing with metadata management and improve folder structure handling in UI components

This commit is contained in:
Anish Sarkar 2026-04-08 16:48:40 +05:30
parent 60eb1e4060
commit ae98f64760
6 changed files with 35 additions and 3 deletions

View file

@ -1,4 +1,4 @@
import { number, string, table } from "@rocicorp/zero";
import { json, number, string, table } from "@rocicorp/zero";
export const folderTable = table("folders")
.columns({
@ -10,5 +10,6 @@ export const folderTable = table("folders")
createdById: string().optional().from("created_by_id"),
createdAt: number().from("created_at"),
updatedAt: number().from("updated_at"),
metadata: json<Record<string, unknown>>().optional().from("metadata"),
})
.primaryKey("id");