tables_db_create_string_column
Add a text column to an Appwrite database table to store character-based data with configurable size, requirements, and security options.
Instructions
Create a string column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | Database ID. | |
| table_id | Yes | Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). | |
| key | Yes | Column Key. | |
| size | Yes | Column size for text columns, in number of characters. | |
| required | Yes | Is column required? | |
| default | No | Default value for column when not provided. Cannot be set when column is required. | |
| array | No | Is column an array? | |
| encrypt | No | Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried. |