Prisma Schema to TypeORM Entity Converter
Transform Prisma models and enums into decorated TypeORM TypeScript entities with primary keys, column options, and relation decorators.
At a glance
Prisma to TypeORM Entity Converter is a free developer utility that transforms Prisma schema models into decorated TypeORM TypeScript entity classes. It accurately translates @id generators, column types, enums, timestamps, and relation mappings 100% client-side in browser memory with zero server uploads.
100% Client-Side Prisma to TypeORM Entity Converter
Zero Server UploadsConvert Prisma models, enums, relations, and primary keys into decorated TypeORM TypeScript entities for NestJS and Node.js applications.
Primary Keys & Generators
Maps Prisma @default(autoincrement()) to @PrimaryGeneratedColumn(), UUID/CUID generators to @PrimaryGeneratedColumn('uuid'), and natural IDs to @PrimaryColumn().
Relations & Timestamps
Translates model relation attributes to @OneToMany(), @ManyToOne(), and @JoinColumn(), while mapping @default(now()) and @updatedAt to lifecycle timestamp decorators.
100% Client-Side Privacy
Complete AST transformation performed entirely in browser memory. Your private database schema files never touch an external server or remote API.
Why Use This Prisma Schema to TypeORM Entity Converter?
How to Use Prisma Schema to TypeORM Entity Converter
Enter Prisma Schema
Paste your Prisma schema models or choose a pre-configured template like Users & Posts or E-Commerce.
Configure Generation Options
Toggle TypeORM imports, relation decorators, and select your target JSON column dialect (jsonb or json).
Copy or Download Entities
Instantly copy the generated TypeORM TypeScript entity classes or download the entities.ts file.
Prisma Model to TypeORM Entity example
Demonstrates converting a Prisma model with autoincrement primary key, unique email, nullable name, and one-to-many relationship into a decorated TypeORM TypeScript entity class.
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
posts Post[]
}
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column({ unique: true })
email: string;
@Column({ nullable: true })
name: string | null;
@OneToMany(() => Post, (post) => post.author)
posts: Post[];
}
Technical Specifications & Engine Details
| Specification | Details |
|---|---|
| Supported Formats | TEXT/PLAIN, .PRISMA → TEXT/TYPESCRIPT, .TS |
| Execution Mode | 100% Client-Side In-Browser (client) |
| Browser Requirements | Modern browser with JavaScript enabled. |
| Performance Constraints | Runs client-side in browser memory. Performance and file limits are bounded by available local device RAM. |
100% Client-Side Privacy Guarantee
Your schema remains strictly on your local device. Zero data is transmitted to external servers.
Frequently Asked Questions
How are Prisma relation attributes mapped to TypeORM?
How are primary keys and autoincrements handled?
Is my database schema uploaded to any server?
Methodology
This tool runs entirely in your browser. The example above shows a representative input and the result it produces.
Last updated .