https://github.com/tupizz/nodejs-typescript-typeorm
nodejs-typescript-typeorm bootcamp
https://github.com/tupizz/nodejs-typescript-typeorm
Last synced: 5 months ago
JSON representation
nodejs-typescript-typeorm bootcamp
- Host: GitHub
- URL: https://github.com/tupizz/nodejs-typescript-typeorm
- Owner: tupizz
- Created: 2020-09-28T11:56:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T11:57:22.000Z (about 5 years ago)
- Last Synced: 2025-04-04T03:15:44.893Z (9 months ago)
- Language: TypeScript
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Criar banco de dados
docker run --name postgres_bootcamp -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
```zsh
yarn typeorm migration:create -n CreateAppointments
yarn typeorm migration:run
yarn typeorm migration:revert
```
# Comandos úteis
```zsh
yarn typeorm migration:create -n CreateUsers
yarn typeorm migration:run
yarn typeorm migration:show
yarn typeorm migration:revert
yarn typeorm migration:run
yarn typeorm migration:show
yarn typeorm -h
yarn typeorm migration:revert -h
yarn typeorm migration:revert
yarn typeorm migration:run
yarn dev:server
git commit -m "Criacao da tabela de usuario + createdAt and updatedAt"
yarn typeorm migration:create AlterProviderFieldToProviderId
yarn typeorm migration:create -n AlterProviderFieldToProviderId
yarn typeorm migration:revert
yarn typeorm migration:run
```