Skip to main content
Version: 2.68.0-Beta 🚧

Data Types

ToolJet Database supports several data types to accommodate various kinds of information. Each data type has its own characteristics and uses.

Supported Data Types

Data TypeDescriptionExample
serialUsed to generate a sequence of integers, often used as the Primary key of a table. When a new table is created in the ToolJet database, a column id with the serial data type is automatically created as the primary key of the table.Numbers starting from 1, 2, 3, 4, 5, etc.
varcharUsed to store characters of indefinite lengthAny string value
intA numeric data type used to store whole numbers, without fractional components.Numbers ranging from -2147483648 to 2147483647
bigintA numeric data type used to store larger whole numbers, without fractional components.Numbers ranging from -9223372036854775808 to 9223372036854775807
floatA numeric data type used to store inexact, variable-precision values.Any floating-point number, ex: 3.14
booleanCan hold true, false, and null values.true or false
date with timeStores both date and time information in ISO 8601 format. The default timezone is set to the user's device time zone, with an option to specify a different timezone. All timestamp data is stored in UTC format and converted to the specified timezone when displayed.'2024-07-22 15:30:00'
ToolJet database

Permissible Constraints per Data Type

The following table shows which constraints are permissible for each data type. For more detailed explanations of each constraint type, please refer to the Column Constraints section.

Data TypePrimary KeyForeign KeyUniqueNot Null
serial
varchar
int
bigint
float
boolean
date with time