mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
15 lines
516 B
TypeScript
15 lines
516 B
TypeScript
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<Record<string, unknown>>().optional().from("metadata"),
|
|
})
|
|
.primaryKey("id");
|