Skip to Content
DocumentationDataReferenceData Types

Data Types

Choose correct types when modeling tables and declaring client variables, page variables, and action parameters.

Momen uses PostgreSQL underneath.

Basic types

TypePostgreSQLLimitsUse
Texttextup to ~1 GBNames, emails, HTML strings
Integerinteger32-bit signedCounts, IDs, status codes
Decimalnumerichigh precisionPrices, money, billing
Booleanbooleantrue / falseFlags (is_vip, toggles)
⚠️

JavaScript and many APIs use float doubles. DB Decimal is exact; mixing float math in custom code can introduce tiny errors before write-back.

Date and time

TypeFormatUse
DateTime (with timezone)YYYY-MM-DDTHH:mm:ss.sssZOrder paid at, logs, appointments
DateYYYY-MM-DDBirthdays, contract dates (no time)
Time (with timezone)HH:mm:ss.sssZDaily opening hours

Media types

Files upload to object storage; the database stores the URL.

TypeStored asUse
ImageURLAvatars, product images
VideoURLClips, courses
FileURLPDF, Office docs, archives

Geo and JSONB

Geo point

[longitude, latitude] — distance formulas for “nearby store” sort and filter.

JSONB

Flexible JSON with GIN indexing — webhook payloads, variant attributes ({"color":"red","size":"XL"}), complex page variable blobs.

Last updated on