> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeORM model generation

> Generate TypeORM model classes from a Squid SDK schema.graphql file with the model-gen tool — used by the typeorm-store and consumed by the processor.

TypeORM entities can be automatically generated from the [schema file](/en/sdk/squid-sdk/reference/schema-file) defined in `schema.graphql`.
The tool is called [`squid-typeorm-codegen(1)`](https://github.com/subsquid/squid-sdk/tree/master/typeorm/typeorm-codegen) and has no additonal options.

Install with

```sh theme={"system"}
npm i @subsquid/typeorm-codegen --save-dev
```

Invoke with

```sh theme={"system"}
npx squid-typeorm-codegen
```
