feat: backend FastAPI funcional con auth, ETA y simulador

This commit is contained in:
2026-05-22 14:42:02 -06:00
parent 53255cfc3a
commit 935380290f
3271 changed files with 736013 additions and 0 deletions

37
backend/schemas.py Normal file
View File

@@ -0,0 +1,37 @@
from pydantic import BaseModel
from typing import Optional
class UsuarioCreate(BaseModel):
email: str
password: str
class UsuarioLogin(BaseModel):
email: str
password: str
class Token(BaseModel):
access_token: str
token_type: str
class DomicilioCreate(BaseModel):
direccion: str
colonia: str
lat: float
lng: float
class DomicilioResponse(BaseModel):
id: int
direccion: str
colonia: str
route_id: str
class Config:
from_attributes = True
class ETAResponse(BaseModel):
route_id: str
colonia: str
current_position: int
mensaje: str
ventana_inicio: str
ventana_fin: str
evento: str