{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/sqlite-generated-columns.schema.json",
  "title": "sqlite-generated-columns (summary schema)",
  "description": "Deep draft, 20 November 2026. Not published. Queued note; iil_id is null until the note is published.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "sqlite-generated-columns"
    },
    "iil_id": {
      "type": "null",
      "description": "Not live yet; the iil:note ID is assigned when the note is published."
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/sqlite-generated-columns/"
    },
    "claim": {
      "type": "string",
      "description": "A generated column, sometimes also called a computed column, stores or exposes a value that is a function of other columns in the same row."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "sqlite-generated-columns",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/sqlite-generated-columns/",
      "claim": "A generated column, sometimes also called a computed column, stores or exposes a value that is a function of other columns in the same row.",
      "license": "CC-BY-4.0",
      "source_license": "Public-Domain (SQLite); Public-Domain (SQLite); prose restates cited source lines in own words",
      "as_of": "2026-11-20",
      "status": "deep-draft-20261120",
      "claims": [
        {
          "id": "C1",
          "claim": "A generated column's value is a function of other columns in the same row and cannot be written directly.",
          "source_id": "S1"
        },
        {
          "id": "C2",
          "claim": "Syntax uses a GENERATED ALWAYS column constraint, as VIRTUAL or STORED.",
          "source_id": "S1"
        },
        {
          "id": "C3",
          "claim": "Adding a NOT NULL generated column, or a typed generated column on a STRICT table, forces a full-table constraint check.",
          "source_id": "S2"
        }
      ],
      "related_slugs": [
        "postgres-generated-columns",
        "sqlite-datatypes-strict",
        "sqlite-when-to-use"
      ],
      "related_artifacts": [
        "sqlite-generated-columns.table.json"
      ]
    }
  ]
}