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.
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
| Type | Use case |
|---|---|
| ID | Primary key; string or integer (UUID for internal DashX resources). |
| UUID | Globally unique identifier in UUID format. |
| String | Text: names, emails, descriptions. |
| Boolean | True/false, flags, toggles. |
| Int | 32-bit whole numbers. |
| BigInt | 64-bit whole numbers. |
| Float | Approximate decimals. |
| BigDecimal | Money (amount, cost, price). |
| Date | Calendar date only. |
| Time | Time of day only. |
| Timestamp | Date and time with precision. |
| Duration | Length of time (hours, days, months). |
| File | Generic binary data. |
| Image | Pictures, graphics. |
| Video | Video content. |
| Audio | Audio content. |
| Document | DOC, DOCX, TXT, ODT. |
| Spreadsheet | CSV, XLSX. |
| Presentation | PPT, PPTX. |