---
title: "Prisma 2.0: TypeScript-first ORM with declarative schema"
description: "Prisma 2.0 (June 2020) by Prisma Labs: TypeScript/Node.js ORM with declarative schema DSL, migrations, type-safe query builder, Prisma Studio. PostgreSQL, MySQL, SQLite, SQL Server, MongoDB. Modern Node.js standard."
url: "https://www.noze.it/en/insights/prisma-2-0/"
lang: "en"
alternate: "https://www.noze.it/insights/prisma-2-0/"
published: "2020-07-15"
author: "noze S.r.l."
keywords: "Open Source, Web, Prisma, TypeScript, Node.js, ORM, Database"
---

# Prisma 2.0: TypeScript-first ORM with declarative schema

Prisma 2.0 (June 2020) by Prisma Labs: TypeScript/Node.js ORM with declarative schema DSL, migrations, type-safe query builder, Prisma Studio. PostgreSQL, MySQL, SQLite, SQL Server, MongoDB. Modern Node.js standard.

15 July 2020

## Node.js ORM: a gap

The Node ecosystem has historically had problematic ORMs:

- **Sequelize** — Active Record pattern, TypeScript often “added later”
- **TypeORM** — decorators, known bugs, slow maintenance
- **Mikro-ORM**, **Objection.js**, **Knex** — niche

A **schema-first**, **type-safe**, **modern-DX** approach is needed.

## The release

**Prisma 2.0** is released by **Prisma Labs** (Berlin) on **9 June 2020**. **Apache 2.0** licence. Founders: **Søren Bramer Schmidt**, **Johannes Schickling**. Version 1.x was GraphQL-focused; 2.0 pivots to general-purpose ORM.

## Architecture

- **Schema DSL** (`schema.prisma`) — declarative definition of models, fields, relations
- **Prisma Client** — TypeScript client generated from schema
- **Prisma Migrate** — schema-diff based migrations
- **Prisma Studio** — GUI for DB browsing

```
model User {
  id    Int    @id @default(autoincrement())
  email String @unique
  posts Post[]
}

model Post {
  id       Int    @id @default(autoincrement())
  title    String
  author   User   @relation(fields: [authorId], references: [id])
  authorId Int
}
```

```
const users = await prisma.user.findMany({
  where: { email: { endsWith: '@example.com' } },
  include: { posts: true }
});
// users is typed: User & { posts: Post[] }[]
```

## Features

- **End-to-end type safety** — types generated from schema, zero manual typing
- Fluent **query builder** — no raw SQL (though supported with `$queryRaw`)
- Declarative **migrations**
- Full **auto-complete** in IDE
- **Nested writes** — create related records in one call
- **Introspection** — generate schema from existing DB (`prisma db pull`)
- **Seed** data
- **Multi-DB**: PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, CockroachDB

## Prisma Accelerate & Pulse

Prisma commercial products:

- **Accelerate** — connection pooling and global cache (Edge-compatible)
- **Pulse** — real-time change data capture
- **Prisma Data Platform** — cloud console

## Competitors

- **TypeORM**, **Sequelize** — historical Node ORMs with Active Record / Data Mapper patterns
- **Mikro-ORM** — Data Mapper alternative

## In the Italian context

Prisma is entering Italian TypeScript-first Node.js teams: fintech/SaaS/AI startups, teams migrating from Sequelize/TypeORM and Next.js fullstack projects.

Update — 2026

Version evolution: **3.0** (referential actions, PlanetScale support, September 2021), **4.0** (Node 14+, MongoDB GA, June 2022), **5.0** (Node 16+, performance boost, July 2023), **6.0** (Node 18+, Rust → TypeScript query engine migration, November 2024). Competitors emerge: **Drizzle ORM** (2022+, TypeScript SQL-like, zero-abstraction, Edge-friendly) with strong growth; **Kysely** (type-safe query builder without schema). Prisma becomes the default ORM in Italian TypeScript bootcamps and integrates with **NestJS** (via `@nestjs/prisma`) and **Edge runtime** (Cloudflare Workers) through Accelerate.

---

_References: Prisma 2.0 (9 June 2020). Prisma Labs, Berlin. Søren Bramer Schmidt, Johannes Schickling. Apache 2.0 licence. Schema DSL, Client, Migrate, Studio. Multi-DB._
