Files
online-backend/Makefile
GuwandykA 8795ae2195 Put the user's role and branch on GET /profile, upsert role_user and branch_user on POST, and drop their list endpoints.
Also accept flexible card-order form values, move mock seed under db/mock, and regenerate Swagger.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 17:56:07 +05:00

22 lines
910 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/mock/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