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>
This commit is contained in:
2026-08-22 17:56:07 +05:00
parent 7225dc0399
commit 8795ae2195
47 changed files with 1308 additions and 1785 deletions

View File

@@ -12,7 +12,7 @@ migrate:
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
docker exec -i main-db psql -U bank_admin -d bank_db -f - < db/mock/seed.sql
# ---- for linux
# migrate: