Back to top
Documentation SurrealQL Data model

Data model

SurrealDB comes with a large number of in-built types, designed specifically for a scalable cloud database which operates directly from the web. To get started with the basic concepts of the data model view one of the sections below.

Simple types

Boolean values, strings, numbers, UUIDs, arrays, objects, and durations


Datetimes and durations can be used to store and manipulate dates and times


Geolocation points and GeoJSON values can be used to store geometry data

Record links

Use record links to point to and link directly with records in other tables


Use futures to store values which should only be computed when retrieving data


SurrealDB makes it easy to convert values between different data types