Files
online-backend/Makefile
GuwandykA 514b9ca5fc Add forgot-password SMS reset, client/staff user lists, and regenerate Swagger.
Fold follow-up migrations into init, expose GET /users/clients and /users/staff, and refresh seed data.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 16:42:47 +05:00

22 lines
905 B
Makefile
Executable File

# Dependencies
dependencies:
docker-compose -f ./deployment/dependencies/docker-compose.yaml up -d
# Database
create-migration:
migrate create -ext sql -dir db/migrations -tz Local init
# --- for Macos
migrate:
migrate -database 'postgres://bank_admin:bank%40%2323%23%40_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations up
migrate-rollback:
migrate -database 'postgres://bank_admin:bank%40%2323%23%40_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations down
seed:
docker exec -i main-db psql -U bank_admin -d bank_db -f - < db/seed.sql
# ---- for linux
# migrate:
# migrate -database 'postgresql://bank_admin:bank%40%2323%23%40_password@localhost:5454/bank_db?sslmode=disable' -path db/migrations up
# migrate-rollback:
# migrate -database 'postgresql://bank_admin:bank%40%2323%23%40_password@localhost:5454/bank_db?sslmode=disable' -path db/migrations down