databases_create_integer_attribute
Add integer attributes to Appwrite database collections with optional value constraints like minimum, maximum, and default values.
Instructions
Create an integer attribute. Optionally, minimum and maximum values can be provided.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | Database ID. | |
| collection_id | Yes | Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
| key | Yes | Attribute Key. | |
| required | Yes | Is attribute required? | |
| min | No | Minimum value to enforce on new documents | |
| max | No | Maximum value to enforce on new documents | |
| default | No | Default value for attribute when not provided. Cannot be set when attribute is required. | |
| array | No | Is attribute an array? |