create_column
Add a new column to an existing table in a Structly schema. Configure its name, data type, primary key status, nullability, and default value.
Instructions
Добавить колонку в таблицу.
Args:
schema_uuid: UUID схемы.
table_uuid: UUID таблицы.
column_name: Название колонки.
column_type: Тип данных PostgreSQL (например, uuid, bigint, text).
is_primary: Является ли колонка первичным ключом.
is_nullable: Может ли колонка содержать NULL.
column_default: Значение по умолчанию (например, gen_random_uuid()).
branch_name: Ветка схемы (по умолчанию main).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_primary | No | ||
| table_uuid | Yes | ||
| branch_name | No | main | |
| column_name | Yes | ||
| column_type | Yes | ||
| is_nullable | No | ||
| schema_uuid | Yes | ||
| column_default | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |