databases_create_float_attribute
Add a decimal number field to Appwrite database collections with optional range limits and default values for data validation.
Instructions
Create a float 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? |