Skip to content
ZeroServer.tools

TypeORM Entity Generator

Generate a TypeORM entity class with decorators from any JSON sample.

Generated Entity
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from "typeorm";

@Entity()
export class Entity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ unique: true })
  email: string;

  @Column({ nullable: true })
  firstName: string;

  @Column({ nullable: true })
  lastName: string;

  @CreateDateColumn()
  createdAt: Date;

  @Column({ default: false })
  isActive: boolean;

  @Column({ type: "float", nullable: true })
  score: number;
}

About TypeORM Entity Generator

Paste any JSON object and instantly generate a TypeORM entity class with the correct decorators, column types, and TypeScript property types. Supports @PrimaryGeneratedColumn, @Column, @CreateDateColumn, and @UpdateDateColumn out of the box. Customize the entity name, then copy or download the ready-to-use .ts file.

Private & free — this tool runs entirely in your browser.

IndieKitShip your Next.js startup in days.affiliate

Related Developer Utilities tools