changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "_warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "columns": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "default_value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null for a generated column -- see generation_expression."
+ },
+ "generated": {
+ "anyOf": [
+ {
+ "enum": [
+ "stored",
+ "virtual"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Non-null means the column is NOT writable; omit it from INSERT/UPDATE column lists."
+ },
+ "generation_expression": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null unless `generated` is set."
+ },
+ "identity": {
+ "anyOf": [
+ {
+ "enum": [
+ "always",
+ "by_default"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "'always' means the column is NOT writable without OVERRIDING SYSTEM VALUE."
+ },
+ "name": {
+ "type": "string"
+ },
+ "not_null_validated": {
+ "description": "PostgreSQL 18+ only, absent below that. False means a NOT VALID not-null constraint, so `nullable: false` can still hide NULLs.",
+ "type": "boolean"
+ },
+ "nullable": {
+ "description": "NOT attnotnull. On PG18+ read alongside `not_null_validated`.",
+ "type": "boolean"
+ },
+ "ordinal_position": {
+ "description": "attnum, so dropped columns leave gaps.",
+ "type": "number"
+ },
+ "type": {
+ "description": "Formatted type, e.g. `character varying(64)`.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "type",
+ "nullable",
+ "default_value",
+ "generation_expression",
+ "generated",
+ "identity",
+ "ordinal_position"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "constraints": {
+ "description": "CHECK / non-PK UNIQUE / EXCLUDE only; PK and FK have their own lists.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "definition": {
+ "type": "string"
+ },
+ "enforced": {
+ "description": "PostgreSQL 18+ only, absent below that. False means the constraint is recorded but enforces nothing -- do not lean on it as a guarantee.",
+ "type": "boolean"
+ },
+ "has_period": {
+ "description": "PostgreSQL 18+ only, absent below that. True for a temporal (PERIOD / WITHOUT OVERLAPS) key.",
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "description": "check | unique | exclude, or the raw contype.",
+ "type": "string"
+ },
+ "validated": {
+ "description": "False for a NOT VALID constraint: existing rows were never checked against it.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "name",
+ "type",
+ "definition",
+ "validated"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "foreign_keys": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "constraint_name": {
+ "type": "string"
+ },
+ "enforced": {
+ "description": "PostgreSQL 18+ only, absent below that. False means the constraint is recorded but enforces nothing -- do not lean on it as a guarantee.",
+ "type": "boolean"
+ },
+ "foreign_columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "foreign_schema": {
+ "type": "string"
+ },
+ "foreign_table": {
+ "type": "string"
+ },
+ "has_period": {
+ "description": "PostgreSQL 18+ only, absent below that. True for a temporal (PERIOD / WITHOUT OVERLAPS) key.",
+ "type": "boolean"
+ },
+ "validated": {
+ "description": "False for a NOT VALID constraint: existing rows were never checked against it.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "constraint_name",
+ "columns",
+ "foreign_table",
+ "foreign_schema",
+ "foreign_columns",
+ "validated"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "indexes": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "definition": {
+ "type": "string"
+ },
+ "is_primary": {
+ "type": "boolean"
+ },
+ "is_unique": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "definition",
+ "is_unique",
+ "is_primary"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "kind": {
+ "description": "table | partitioned_table | view | materialized_view | foreign_table, or the raw relkind. Defaults to 'table' with a `_warnings` entry when the kind fetch failed.",
+ "type": "string"
+ },
+ "partition_of": {
+ "additionalProperties": false,
+ "description": "Present only when this relation is itself a partition.",
+ "properties": {
+ "schema": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "table"
+ ],
+ "type": "object"
+ },
+ "partitions": {
+ "description": "Present only when this relation is a partitioned parent WITH children.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "bound": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "table",
+ "bound"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "primary_key": {
+ "description": "Key columns in declared order; INCLUDE columns are excluded.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "referenced_by": {
+ "description": "Other tables whose foreign keys point AT this one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "constraint_name": {
+ "type": "string"
+ },
+ "enforced": {
+ "description": "PostgreSQL 18+ only, absent below that. False means the constraint is recorded but enforces nothing -- do not lean on it as a guarantee.",
+ "type": "boolean"
+ },
+ "has_period": {
+ "description": "PostgreSQL 18+ only, absent below that. True for a temporal (PERIOD / WITHOUT OVERLAPS) key.",
+ "type": "boolean"
+ },
+ "referenced_columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ },
+ "validated": {
+ "description": "False for a NOT VALID constraint: existing rows were never checked against it.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "constraint_name",
+ "schema",
+ "table",
+ "columns",
+ "referenced_columns",
+ "validated"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "table",
+ "kind",
+ "columns",
+ "primary_key",
+ "foreign_keys",
+ "referenced_by",
+ "constraints",
+ "indexes"
+ ],
+ "type": "object"
+}