Co-authored-by: MENDOZA BALLARDO GAEL RICARDO <gael-meb123@users.noreply.github.com>

version final final ya enserio la final del proyecto :)
This commit is contained in:
shinra32
2026-05-23 08:42:27 -06:00
parent 92f570294a
commit 56c51378b8
10 changed files with 464 additions and 289 deletions

View File

@@ -18,7 +18,7 @@ class IncidentOut(BaseModel):
id: int
user_id: str
unit_id: Optional[int] = None
category: IncidentCategory
type: IncidentCategory
description: str
photo_url: Optional[str] = None
status: IncidentStatus
@@ -28,5 +28,5 @@ class IncidentOut(BaseModel):
class IncidentCreate(BaseModel):
"""Payload usado cuando NO se sube foto (JSON)."""
unit_id: Optional[int] = None
category: IncidentCategory
type: IncidentCategory
description: str = Field(min_length=3, max_length=1000)