import { json, number, string, table } from "@rocicorp/zero"; export const folderTable = table("folders") .columns({ id: number(), name: string(), position: string(), parentId: number().optional().from("parent_id"), searchSpaceId: number().from("search_space_id"), createdById: string().optional().from("created_by_id"), createdAt: number().from("created_at"), updatedAt: number().from("updated_at"), metadata: json>().optional().from("metadata"), }) .primaryKey("id");