Data types

Click to copy

Data types


AppMaster.io supports various types of fields, every field can contain an array (collection) of values. The best way to get a maximum of platform features is to select proper field types. Platforms AI treats every type differently and many autogeneration functions depend on the field type. Try to use the most accurate field types for your data.

Field typeDescriptionUse case
StringStandard string fieldAny string data - just short text that not required special formatting (for phones and emails use special fields)
TextMultiline text fieldComments, messages, texts and etc
IntegerThis is an integer number for counting objectsFor any integer values - quantities, counters, etc
FloatFloat values with standard precisionMoney values, any float values
Decimal

BooleanBoolean value has only True or False stateIdeal for data fields that have only 2 states, e.g. delivered, active, etc
DateStandard date field, stores only date without timeUse where the only date is important and not time
TimeStandard time of the day field stores only time without a dateUse where an only time of the day is important and not date
DateTimeCombined date and time field, stores date with time in a single valueUse as a full representation of the day and time moment
TimeSpanSpecial type for storing time interval length with up to millisecond accuracyUse for time interval definition, used as a result of two dates substruction
PasswordString field, dedicated to storing passwords and sensitive dataPasswords, tokens, sensitive data
EmailString field, designed to store emailsEmail fields
Phone numberPhone numbers can be stored and rendered with special formattingPhone number fields
FileFile field type is designed to store any type of files. Uses default storage to store file data and DB to store metadataPhotos, videos, attachments and etc
Geo pointGPS standard point with longitude and latitude (eg 37.381238, -121.974801)For map points primarily, any map and location-related data. If you want to add accuracy - add via a separate field
EnumAn enum type is a special data type that represents the value from the predefined list of valuesIdeal when the user needs to pick a value from the predefined list of values. E.g. status of an order, fixed list of vehicle types and etc
ModelField, that has a link to an existing data modelUsed in relations between models, business processes and endpoint variables
ArrayArray type is a data type that represents a collection of elementsUse when you need to store multiple elements of the same type in one field