DataSchemaState
A data schema defining the structure of a custom data table
Fields
Unique identifier
SQL-safe identifier for the table
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
Lucide icon name for sidebar display
Creation timestamp (ISO8601)
Last update timestamp (ISO8601)
Referenced by (4)
Exact type 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
}