diff --git a/backend/app/schemas/alert.py b/backend/app/schemas/alert.py new file mode 100644 index 0000000..8c34cc1 --- /dev/null +++ b/backend/app/schemas/alert.py @@ -0,0 +1,18 @@ +"""Alert schemas.""" +from pydantic import BaseModel, Field +from typing import Optional +from datetime import datetime + + +class AlertResponse(BaseModel): + id: int + alert_type: str + severity: str + message: str + project_id: Optional[int] = None + worker_id: Optional[int] = None + is_read: bool + tenant_id: int + created_at: datetime + + model_config = {"from_attributes": True}