Skip to content
Back to features
Data modeling

Collections

Define your operational data model in model.ts — schema, relationships, and record labels as code.

Collection schema authoring in workspace source

What it is

Collections are how you define operational data in @norbital-ai/pod. Each collection lives in modules/collections/<name>/model.ts and registers through workspace.ts.

Schema, relationships, and record labels are source code — reviewable in git and compiled by norbital build. System collections like user and task are merged automatically; you author domain collections on top.

What you author

  • Field types — primitives, enums, money, date ranges, file fields
  • Relationships — many-to-many links between collections
  • Record labels — how records display in selectors and links
  • Companion hooks and pipelines beside each collection module

Where it adds value

Collections are the foundation every other authoring surface builds on — apps read them, hooks react to them, automations process them, and policies guard them.

Next feature

Apps

Svelte pages for the teams doing the work.