# Legacy Project Database

> Every Totalum project comes with a built-in database. Schema creation, migrations, CRUD and scaling are handled for you: the AI agent creates and maintains it as it builds your app.

:::note Legacy
This page describes the database of **legacy projects** (created before 8 October 2026 or without the v2 engine). Current projects use a SQL database: see [Database](https://www.totalum.app/docs/api/database) and the [Totalum SDK](https://www.totalum.app/docs/sdk/database).
:::

Every Totalum project has a **built-in database**: there is nothing to provision, connect or
configure. It handles everything a real application needs:

- **Schema creation**: tables, fields, types and relations.
- **Migrations**: structure changes are applied safely as your app evolves.
- **CRUD operations**: create, read, update and delete records.
- **Scalability**: the database **scales automatically** as your data grows.

By default each project supports up to **5 million records per table** and **300 tables per
project**, and it scales automatically within those limits.

:::tip You don't have to manage the database yourself
When you talk to the Totalum AI agent while building your project, **the agent is responsible for
creating and maintaining the database**: tables, fields, relations and migrations. You don't
need to worry about any of it.
:::

## Working with your data

- **[Get all data from your project](https://www.totalum.app/docs/sdk/legacy/get-all-data)**: export your records as JSON
  or Excel, the easy way or programmatically.
- **[Totalum Database SDK](https://www.totalum.app/docs/sdk/legacy/sdk)**: the TypeScript SDK used on every Totalum
  project for CRUD, filters and built-in integrations.

## Overview

The Totalum database is a managed, auto-scaling data layer built into every project. It is a
NoSQL database (based on MongoDB) exposed through the [Totalum Database SDK](https://www.totalum.app/docs/sdk/legacy/sdk),
which handles all CRUD operations, powerful filtering and nested-relation queries, plus built-in
integrations like PDF generation and AI. Because the AI agent creates and maintains your schema
as it builds, your data model always stays in sync with your app, and you own 100% of your data,
exportable at any time.
