Do not delete existing tables with TypeORM
TypeORM is an amazing ORM for NodeJS.
But for some reason, the starter template recreates your tables by default,
which often leads to data loss.
This is due to the synchronize
option in ormconfig.json
.
If needed, you can enable / disable this option per Entity
:
@Entity({synchronize: true})
export class Temporary {
...
}