Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Overview (Prisma ORM v7) (/docs/orm/v7/core-concepts/supported-databases)

For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending .md to its URL.

Prisma ORM supports PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and serverless databases

Location: ORM > v7 > Core Concepts > Overview

Database Version
PostgreSQL 9.6+
MySQL 5.6+
MariaDB 10.0+
SQL Server 2017+
SQLite All
MongoDB 4.2+
CockroachDB 21.2.4+
Database Notes
Neon Serverless Postgres
Supabase Postgres
PlanetScale MySQL
Turso libSQL (SQLite)
Cloudflare D1 (Preview) SQLite
AWS Aurora MySQL/Postgres
MongoDB Atlas MongoDB
Feature PostgreSQL MySQL SQLite SQL Server MongoDB
PRIMARY KEY ✔️ ✔️ ✔️ ✔️ ✔️
FOREIGN KEY ✔️ ✔️ ✔️ ✔️ —
UNIQUE ✔️ ✔️ ✔️ ✔️* ✔️
NOT NULL ✔️ ✔️ ✔️ ✔️ ✔️
DEFAULT ✔️ ✔️ ✔️ ✔️ ✔️

*SQL Server has limitations with UNIQUE constraints

Feature PostgreSQL MySQL SQLite SQL Server MongoDB
Arrays ✔️ — — — ✔️
JSON ✔️ ✔️ ✔️ ✔️ ✔️
Enums ✔️ ✔️ ✔️ — ✔️

For custom database drivers, see Driver adapters.

  • API patterns: How to use Prisma ORM with REST APIs, GraphQL servers, and fullstack frameworks
  • Data modeling: Learn how data modeling with Prisma differs from data modeling with SQL or ORMs. Prisma uses a declarative data modeling language to describe a database schema
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu