---
title: "Automatic PostgreSQL schema design and setup | Backenly"
description: "Backenly designs and applies a PostgreSQL schema from a description: tables, relations, indexes and row-level security, isolated to your project and exportable."
url: https://backenly.com/features/database-setup
markdown_url: https://backenly.com/features/database-setup.md
---

# A real PostgreSQL database

Describe the data model. Backenly creates the tables, relations, indexes and row-level security, in a schema that belongs to your project alone.

## One schema per project

Each project is its own Postgres schema. Isolation is a Postgres grant, not a WHERE clause.

### Normalized by default

Tables without duplicated data, with referential integrity held by foreign keys and join tables rather than by convention.

### The right types

UUIDs for identifiers, timestamps with time zone for dates, JSONB where the data is genuinely flexible, and text where it is not.

### Row-level security

Policies in PostgreSQL decide what each user can read and write, so access control does not have to be remembered on every API path.

### Safe schema evolution

Describe a change and Backenly applies it behind a restore point, records it, and routes anything destructive to a person first.

## Questions

### Does Backenly use PostgreSQL?

Yes. Every project is standard PostgreSQL, in its own isolated schema, with pgvector available for embeddings.

### Can I access the database directly?

Yes. Provision a read-only connection string on demand, and arm a read-write one explicitly from the dashboard, both scoped to your project's schema. Full pg_dump exports are available at any time, and read-only SQL (joins, aggregates, window functions, CTEs, EXPLAIN) runs from the CLI and over MCP. What Backenly governs is structural change: schema mutations go through planned, verified, reversible actions rather than ad-hoc DDL. Your data stays portable and your schema stays accountable.

### What happens to my data if I change plans?

Your data is preserved across plan changes. Upgrading adds capacity; downgrading keeps your data within the limits of the new plan.

## Related features

- [Agent-built backends](https://backenly.com/features/ai-backend-generation.md)
- [REST API](https://backenly.com/features/api-generation.md)
- [Authentication](https://backenly.com/features/authentication.md)
- [Operations and autonomy](https://backenly.com/features/deployment-ready-backends.md)
- [Self-restructuring schema](https://backenly.com/features/self-restructuring-schema.md)

---

Source: [Automatic PostgreSQL schema design and setup | Backenly](https://backenly.com/features/database-setup). Every page in Markdown: https://backenly.com/index.md. Agent docs: https://backenly.com/llms.txt.
