AkurAI Build
Menu

Public repository / 9f0fd7a16e2dff7518389ff0ddbd603ebc6264ed

AkurAI-Notes / site/backend/collections.toml

Latest change 3f3c3218239131fdc60fb9196283c9a0162898a9 - E04: notes-core entities + CRUD handlers + collections schema + seed data by Claude Code

# Declarative data model — notes, notebooks, tags.
# Each collection becomes a REST API at /api/<name> with CRUD + ?search.
# Fields marked embed = true are auto-embedded for semantic search.

[[collection]]
name = "notes"

  [[collection.field]]
  name = "title"
  type = "text"
  required = true
  embed = true

  [[collection.field]]
  name = "body"
  type = "text"
  embed = true

  [[collection.field]]
  name = "format"
  type = "text"

  [[collection.field]]
  name = "notebookId"
  type = "int"
  index = true

  [[collection.field]]
  name = "ownerSub"
  type = "text"
  index = true

  [[collection.field]]
  name = "tagIds"
  type = "text"

  [[collection.field]]
  name = "createdAt"
  type = "int"
  index = true

  [[collection.field]]
  name = "updatedAt"
  type = "int"
  index = true

  [[collection.field]]
  name = "archived"
  type = "bool"

[[collection]]
name = "notebooks"

  [[collection.field]]
  name = "name"
  type = "text"
  required = true
  embed = true

  [[collection.field]]
  name = "description"
  type = "text"

  [[collection.field]]
  name = "ownerSub"
  type = "text"
  index = true

  [[collection.field]]
  name = "color"
  type = "text"

  [[collection.field]]
  name = "createdAt"
  type = "int"
  index = true

[[collection]]
name = "tags"

  [[collection.field]]
  name = "name"
  type = "text"
  required = true
  embed = true

  [[collection.field]]
  name = "ownerSub"
  type = "text"
  index = true

  [[collection.field]]
  name = "color"
  type = "text"

  [[collection.field]]
  name = "createdAt"
  type = "int"