Skip to main content

Data Types

DashX provides a set of built-in data types for defining fields in your resources and data models. This page describes each type and when to use it.

To compose these into enums, objects, and unions of your own, see Custom Data Types.

Identifiers​

ID​

A unique identifier, typically used as a primary key. An ID can be a string or an integer. For internal custom resources created on DashX, the ID is a UUID.

UUID​

A universally unique identifier in standard UUID format. Use this when you need a globally unique, non-sequential identifier for entities or records.


Text and logic​

String​

A variable-length sequence of characters for textual data. Use for simple text fields such as first name, last name, email, titles, descriptions, and other free-form text.

Boolean​

Represents a binary value: true or false. Use for flags, toggles, and yes/no or on/off states.


Numbers​

Int​

A 32-bit signed integer. Use for whole numbers within the 32-bit range (e.g. counts, quantities, small numeric IDs).

BigInt​

A 64-bit signed integer. Use when you need a larger range of whole numbers than Int provides.

Float​

A floating-point number for decimal values. Use for approximate numeric data where exact precision is not critical (e.g. measurements, ratings).

BigDecimal​

An arbitrary-precision decimal type, suitable for financial calculations. When representing money in your system — such as amount, cost, or price — use BigDecimal to avoid rounding errors that can occur with Float.


Date and time​

Date​

A calendar date with no time component. Use for birth dates, due dates, or any value that represents only a day.

Time​

A specific time of day with no date component. Use for daily schedules, opening hours, or recurring times.

Timestamp​

Stores both date and time with precision. Use when you need to record when something happened or will happen (e.g. created at, updated at, scheduled at).

Duration​

Represents a length of time — for example, two hours, five days, or three months. Use for intervals, spans, or time-based offsets.


File and media​

DashX provides a generic File type for binary data, with specializations for common formats. Choose the specialization that best matches your content so the system can handle it appropriately.

File (generic)​

The base type for any binary or file data. Use when the content does not fit a more specific type below.

Image​

Stores image or picture data (e.g. photos, icons, graphics).

Video​

Stores video content. Use for video files or references to video assets.

Audio​

Stores audio data. Use for sound files, voice recordings, or other audio assets.

Document​

Stores document files. Typical formats include Word documents (DOC, DOCX), plain text (TXT), and Open Document Text (ODT).

Spreadsheet​

Stores spreadsheet files. Typical formats include CSV and XLSX.

Presentation​

Stores presentation files. Typical formats include PPT and PPTX.


Summary​

TypeUse case
IDPrimary key; string or integer (UUID for internal DashX resources).
UUIDGlobally unique identifier in UUID format.
StringText: names, emails, descriptions.
BooleanTrue/false, flags, toggles.
Int32-bit whole numbers.
BigInt64-bit whole numbers.
FloatApproximate decimals.
BigDecimalMoney (amount, cost, price).
DateCalendar date only.
TimeTime of day only.
TimestampDate and time with precision.
DurationLength of time (hours, days, months).
FileGeneric binary data.
ImagePictures, graphics.
VideoVideo content.
AudioAudio content.
DocumentDOC, DOCX, TXT, ODT.
SpreadsheetCSV, XLSX.
PresentationPPT, PPTX.