# Kononnable/typeorm-model-generator

Generates models for TypeORM from existing database.

Repository: https://github.com/Kononnable/typeorm-model-generator
Canonical: https://ross.abutalabs.com/products/typeorm-model-generator
Language: TypeScript
License: MIT
License Family: permissive
Archived: true
Last push: 2022-10-10T06:20:10+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3450, "days_push": 1423, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1522, forks 289 (observed 2026-08-28T04:04:57.961518+00:00)

## What it is
A CLI tool that generates TypeORM entity models from an existing database schema. It supports SQL Server, PostgreSQL, MySQL, MariaDB, Oracle, and SQLite and offers both an interactive wizard and command-line parameters.

## Use cases
- generate TypeORM entities from an existing database
- reverse-engineer a database schema into TypeScript models
- scaffold ORM models for a legacy MySQL database
- create TypeORM models from a PostgreSQL schema
- bootstrap a TypeORM project from an existing SQL Server database
- convert database tables into entity classes with relations

## When to choose
- you have an existing relational database and want to adopt TypeORM without writing entities by hand
- you need to scaffold models including relations from a live schema
- you want a quick interactive wizard or scriptable CLI for model generation

## When to avoid
- you are starting a new project with no existing database (write entities directly instead)
- you need a tool under active development - the project is in maintenance mode
- you use a non-relational or unsupported database engine
- you use an ORM other than TypeORM

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: orm, database-driver, cli
- domain: databases, developer-tools, backend, web-development
- platform: cli, cross-platform
- tags: typeorm, model-generation, reverse-engineering-schema, sql, scaffolding, typescript, code-generation, nodejs

## Member repositories
- Kononnable/typeorm-model-generator (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:57.961518+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:45.975924+00:00, confidence not recorded.
  - readme: https://github.com/Kononnable/typeorm-model-generator (fetched 2026-08-28T04:04:57.961518+00:00, sha 93f45ba4f4b2)
  - registry_npm: https://registry.npmjs.org/typeorm-model-generator (fetched 2026-08-29T11:34:54.023552+00:00, sha 320c998c68b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
