@Table decorator.
Once you do this we call the class an .
To define columns you need to create fields in the class and decorate them with the @Column decorator.
Every needs to have a .
Example:
/entities/users.ts
Client
Initialize a :tygress-client.ts
Database setup
Create your databaseyarn tygress db:create
Generate your initial migration: yarn tygress migration:generate InitialMigration
Run the migration: yarn tygress migration:run
More about migrations ->
Usage
Elsewhere in your application you can run queries like this:index.ts
Continue reading
Keep learning how to use Tygress