Delete legacy alerts
This commit is contained in:
@@ -14,11 +14,6 @@ class BusinessType(str, Enum):
|
||||
INDIVIDUAL = "individual"
|
||||
CENTRAL_WORKSHOP = "central_workshop"
|
||||
|
||||
class AlertType(str, Enum):
|
||||
HIGH_DEMAND = "high_demand"
|
||||
LOW_DEMAND = "low_demand"
|
||||
STOCKOUT_RISK = "stockout_risk"
|
||||
OVERPRODUCTION = "overproduction"
|
||||
|
||||
class ForecastRequest(BaseModel):
|
||||
"""Request schema for generating forecasts"""
|
||||
@@ -100,16 +95,4 @@ class BatchForecastResponse(BaseModel):
|
||||
forecasts: Optional[List[ForecastResponse]]
|
||||
error_message: Optional[str]
|
||||
|
||||
class AlertResponse(BaseModel):
|
||||
"""Response schema for forecast alerts"""
|
||||
id: str
|
||||
tenant_id: str
|
||||
forecast_id: str
|
||||
alert_type: str
|
||||
severity: str
|
||||
message: str
|
||||
is_active: bool
|
||||
created_at: datetime
|
||||
acknowledged_at: Optional[datetime]
|
||||
notification_sent: bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user