← API reference
CANONICAL TYPE REFERENCE

DataSchemaState

A data schema defining the structure of a custom data table

Unique identifier

nameString!

SQL-safe identifier for the table

labelString!

Human-friendly display name

JSON Schema (draft 2020-12) describing the table columns. Validated beyond the specification: an unrecognised keyword is refused rather than ignored, because a document here describes a shape data must satisfy and a silently-ignored keyword constrains nothing. {"typ": "objct"} is a valid schema by the spec and is rejected here.

Description of the table's purpose

iconString

Lucide icon name for sidebar display

createdAtString!

Creation timestamp (ISO8601)

updatedAtString!

Last update timestamp (ISO8601)

View exact SDL
"""A data schema defining the structure of a custom data table"""
type DataSchemaState @iac_resource(name: "data_schema") @iac_ops(create: "createDataSchema", read: "getDataSchema", update: "updateDataSchema", delete: "deleteDataSchema") {
  """Unique identifier"""
  id: DataSchemaID! @iac_identity(assignedBy: SERVER) @iac_computed
  """SQL-safe identifier for the table"""
  name: String!
  """Human-friendly display name"""
  label: String!
  """
  JSON Schema (draft 2020-12) describing the table columns. Validated beyond the specification: an unrecognised keyword is refused rather than ignored, because a document here describes a shape data must satisfy and a silently-ignored keyword constrains nothing. `{"typ": "objct"}` is a valid schema by the spec and is rejected here.
  """
  jsonSchema: String @iac_artifact(language: JSON, validators: ["json-schema-document"])
  """Description of the table's purpose"""
  description: String
  """Lucide icon name for sidebar display"""
  icon: String
  """Creation timestamp (ISO8601)"""
  createdAt: String! @iac_computed
  """Last update timestamp (ISO8601)"""
  updatedAt: String! @iac_computed
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.