Skip to content

CRUD and tests for Cuentas #16

Merged
salog0d merged 10 commits into
mainfrom
feat/bank
Apr 10, 2026
Merged

CRUD and tests for Cuentas #16
salog0d merged 10 commits into
mainfrom
feat/bank

Conversation

@herrdelta83
Copy link
Copy Markdown
Collaborator

New Files Created
entities/cuenta.py: ORM model — FK to usuario.id with cascade delete

models/cuenta.py: Pydantic CreateCuentaRequest, UpdateCuentaRequest, CuentaResponse

repositories/cuenta_repository.py: create, get_by_id, get_all, update, delete

api/cuentas.py: 5 routes under /api/cuentas

tests/test_cuentas.py: 9 tests covering all ops + edge cases

Notes
One extra compared to usuarios: GET /api/cuentas?user_id= — filters cuentas by owner, which you'll need when building the frontend.

@salog0d salog0d merged commit f379dcc into main Apr 10, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants