Attribute naming
Attribute names must follow these rules:- Only use alphanumeric characters (a-z, A-Z, 0-9)
- Can include underscores, dashes, and spaces
- Are case-sensitive
- Must be unique within the
attributesobject
snake_case for all attribute names to maintain consistency across your application. For example:
user_idcreated_atlast_login_time
signed_up_at can be displayed as “Signed Up” in the interface.
Attribute data types
We support the following attribute data types:Best practices
-
Naming conventions
- Use
snake_casefor all attribute names - Choose descriptive names that clearly indicate the data’s purpose
- Avoid using reserved words or system field names
- Use
-
Data types
- Use the most appropriate data type for your data
- Store dates as
datetimetype, not as strings - Use
booleanfor true/false values instead of strings
-
Performance considerations
- Keep attribute names concise but descriptive
- Avoid storing large amounts of data in attributes
- Use appropriate data types to optimize storage and query performance