{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-db2/json-schema/ibm-db2-column-property-schema.json",
  "title": "ColumnProperty",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-db2-openapi.yml#/components/schemas/ColumnProperty",
  "type": "object",
  "properties": {
    "column_name": {
      "type": "string",
      "description": "Name of the column."
    },
    "table_name": {
      "type": "string",
      "description": "Unqualified name of the table, view, or nickname that contains the column."
    },
    "table_schema": {
      "type": "string",
      "description": "Schema name of the table, view, or nickname that contains the column."
    },
    "type_name": {
      "type": "string",
      "description": "Unqualified name of the data type for the column."
    },
    "length": {
      "type": "string",
      "description": "Maximum length of the data; 0 for distinct types."
    },
    "scale": {
      "type": "string",
      "description": "Scale if the column type is DECIMAL or number of digits of fractional seconds if the column type is TIMESTAMP; 0 otherwise."
    },
    "nulls": {
      "type": "string",
      "description": "Nullability attribute for the column."
    },
    "default": {
      "type": "string",
      "description": "Default value for the column of a table expressed as a constant, special register, or cast-function appropriate for the data type of the column. Can also be the keyword NULL. Values might be converted from what was specified as a default value. For example, date and time constants are shown in ISO format, cast-function names are qualified with schema names, and identifiers are delimited. Null value if a DEFAULT clause was not specified or the column is a view column."
    },
    "logged": {
      "type": "string",
      "description": "Whether the column is logged."
    },
    "compact": {
      "type": "string",
      "description": "Whether the column is compacted."
    },
    "compress": {
      "type": "string",
      "description": "Compress."
    },
    "identity": {
      "type": "string",
      "description": "Identity."
    },
    "generated": {
      "type": "string",
      "description": "Type of generated column."
    },
    "row_change_timestamp": {
      "type": "string",
      "description": "Row change timestamp."
    },
    "start": {
      "type": "string",
      "description": "Start value of the sequence. The null value if the sequence is an alias."
    },
    "increment": {
      "type": "string",
      "description": "Increment value. The null value if the sequence is an alias."
    },
    "min_value": {
      "type": "string",
      "description": "Minimum value of the sequence. The null value if the sequence is an alias."
    },
    "max_value": {
      "type": "string",
      "description": "Maximum value of the sequence. The null value if the sequence is an alias."
    },
    "cycle": {
      "type": "string",
      "description": "Indicates whether or not the sequence can continue to generate values after reaching its maximum or minimum value."
    },
    "cache": {
      "type": "string",
      "description": "Number of sequence values to pre-allocate in memory for faster access. 0 indicates that values of the sequence are not to be preallocated. In a partitioned database, this value applies to each database partition. -1 if the sequence is an alias."
    },
    "order": {
      "type": "string",
      "description": "Indicates whether or not the sequence numbers must be generated in order of request."
    },
    "inline_length": {
      "type": "string",
      "description": "Maximum size in bytes of the internal representation of an instance of an XML document, a structured type, or a LOB data type, that can be stored in the base table; 0 when not applicable."
    },
    "primary_key": {
      "type": "string",
      "description": "Whether it is a primary key."
    },
    "part_key_seq": {
      "type": "string",
      "description": "The column's numerical position within the table's distribution key; 0 or the null value if the column is not in the distribution key. The null value for columns of subtables and hierarchy tables."
    }
  }
}