Oct 12, 2021·1 min read

Types of data that AppMaster.io works with

Discover all data types present on AppMaster.io, to choose the ones that match your apps data.

Types of data that AppMaster.io works with

AppMaster.io supports several data types, and each variable can be single or array.

Many auto-generation functions depend on the selected data type because the platform's artificial intelligence processes each type differently. Therefore, it is important to choose the types that most closely match the data with which your application will work.

List of data types

  • String is a standard string field with a maximum length of 255 characters (a string can include numbers and symbols, but is always treated as text).
  • Text - multi-line text field with no length restrictions (comments, messages, posts).
  • Integer is an integer type for counting objects (quantities, counters).
  • Float - standard precision floating-point values. Used to store numbers that may have a fractional component, such as monetary values.
  • Boolean is a data type whose boolean value can take one of two values: true (logical unit "1") or false (logical zero "0").
  • Date is a standard field that only stores the date, usually in the format YYYY-MM-DD.
  • Time is a standard field that stores time in hh:mm:ss format. Stores only the time of day without date data.
  • DateTime is a combined date and time type that allows you to store them in one value.
  • TimeSpan is a special type for storing a time interval with millisecond precision (the result of subtracting two dates).
  • Password is a string field for storing confidential data: passwords, tokens, etc.
  • Email is a string field for storing email addresses.
  • Phone number -string field for storing phone numbers in a single format.
  • File - intended for storing files of any type; uses default storage for file data and database for metadata.
  • Geo point is a standard GPS point with longitude and latitude.
  • Html - data type for storing HTML markup.
  • Enum is a special data type for storing a predefined list of values ​​(order status, list of product categories, etc.).
  • Model - contains a link to an existing data model; used in building relationships between models, setting up business processes, and endpoint variables.

Changing data types

You can change the type of a variable in the course of a business process using special blocks (Logic / Type conversion group).

If, after creating a data model, you want to change the type of one of its fields, it is worth considering whether you made entries for this model or not. If not, you can simply change the data type to the desired one. In the second case, conversion is required, so follow the prompts. The platform will only allow you to change the data type if the existing format is compatible with the format to which the field is being converted.

Changing any type to an array is not backward compatible.

Working with data in AppMaster.io

You can learn more about how to work with data on our no-code platform in the documentation on the website and video tutorials on the AppMaster.io YouTube channel.

FAQ

When should I use String instead of Text?

Use String for short text up to 255 characters, such as names, codes, or labels. Choose Text for longer content like comments, messages, and posts.

What is the difference between Integer and Float?

Use Integer when you only need whole numbers, such as item quantities or counters. Use Float when a value can include a decimal part, such as a price or measurement.

When should I use a Boolean field?

Use Boolean for a true or false choice, such as whether a user has accepted terms or an order is paid. It stores only those two values.

How do Date, Time, and DateTime differ?

Date stores a calendar date only. Time stores a time of day only, while DateTime keeps both the date and time together.

What is TimeSpan used for?

TimeSpan stores a duration with millisecond precision. It works well for values such as the time between two dates or the length of a process.

Which field types should I use for contact and confidential data?

Password is intended for confidential values such as passwords and tokens. Use Email for email addresses and Phone number when you need phone numbers in one consistent format.

How should I store uploaded files?

Use File when your app needs to keep uploaded files of any type. AppMaster stores the file data in its default storage and keeps file metadata in the database.

What is a Geo point field for?

Geo point stores a GPS location with latitude and longitude. Use it for features that need a location, such as maps, delivery areas, or nearby places.

Why use an Enum instead of a String?

Enum stores one value from a predefined list, such as an order status or product category. It helps keep data consistent when users must choose from fixed options.

Can I change a field type after creating a data model?

You can convert a variable during a business process with blocks in Logic / Type conversion. For an existing data-model field, AppMaster allows a change only when existing values can convert to the new format; changing a type to an array is not backward compatible.

Easy to start
Create something amazing

Experiment with AppMaster with free plan.
When you will be ready you can choose the proper subscription.

Get Started