Skip to content

CRUD and Tests for security_event, sesion, transaccion, risk_feature, risk_assessment, fraud_action, audit_log, otp_challenge, token_blacklist, ip_reputation#28

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

CRUD and Tests for security_event, sesion, transaccion, risk_feature, risk_assessment, fraud_action, audit_log, otp_challenge, token_blacklist, ip_reputation#28
salog0d merged 5 commits into
mainfrom
feat/bank

Conversation

@herrdelta83
Copy link
Copy Markdown
Collaborator

New Files Created
entities/: security_event, sesion, transaccion, risk_feature, risk_assessment, fraud_action, audit_log, otp_challenge, token_blacklist, ip_reputation

models/: Pydantic models for all 10 entities above.

repositories/: CRUD logic for all 10 entities above.

api/: Routers for all 10 entities above.

tests/: Full test suites for all 10 new modules.

Files Modified
api/router.py: Registered all 10 new routers.

Extra Endpoints (Beyond Basic CRUD)
POST /api/sesiones/{id}/end: Stamps ended_at to now.

GET /api/token-blacklist/by-jti/{jti}: Lookup by token ID (essential for JWT validation).

GET /api/ip-reputations/by-ip/{ip}: Lookup by IP string.

ip_reputation: Auto-stamps updated_at on every update.

Summary
The entire backend is now fully scaffolded. Every table from the database design has CRUD routes, a dedicated repository, and passing tests. The infrastructure is ready for the frontend integration.

…assessment, fraud_action, audit_log, otp_challenge, token_blacklist, ip_reputation
…eature, security event, sesion, token blacklist, transaccion
…risk feature, security event, sesion, token blacklist, transaccion
…s, risk_assessments, fraud_actions, audit_logs, otp_challenges, token_blacklist, ip_reputations
@salog0d salog0d merged commit fa2949e into main Apr 10, 2026
3 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