AppModule (actual shape)
TypeOrmModule.forRoot({
type: 'postgres',
url: env.DATABASE_URL,
entities: [User, Ticket],
// Realtime rule: migrations own the schema. Never true in shared/staging/prod.
synchronize: false,
migrations: ['dist/database/migrations/*.js'],
migrationsRun: false,
}),migrationsRun: false means migrations are run explicitly (pnpm db:migration:run), not automatically on boot.