{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "SnowflakeAddColumnToTableRequest",
  "description": "Request for adding a column to a Snowflake table.",
  "required": [
    "name",
    "definition"
  ],
  "properties": {
    "name": {
      "description": "Name of the column to add.",
      "type": "string"
    },
    "definition": {
      "description": "Column definition for Snowflake.",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "description": "Snowflake column type. Must be one of allowed types.",
          "type": "string"
        },
        "length": {
          "description": "Optional length for the column.",
          "type": "integer",
          "nullable": true
        },
        "nullable": {
          "description": "Whether the column is nullable.",
          "type": "boolean",
          "nullable": true
        },
        "default": {
          "description": "Default value for the column.",
          "type": "string",
          "nullable": true
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}