- Fixed AttributeError in User model (added region_code, preferred_language) - Fixed InvalidRequestError in AssetAssignment (added organization relationship) - Configured STATIC_DIR for translation sync - Applied Alembic migrations for user schema updates
26 lines
693 B
Python
26 lines
693 B
Python
from pydantic import BaseModel
|
|
from datetime import datetime
|
|
from typing import Optional, Any, Dict, List
|
|
from app.models.security import ActionStatus
|
|
|
|
class PendingActionResponse(BaseModel):
|
|
id: int
|
|
requester_id: int
|
|
action_type: str
|
|
payload: Dict[str, Any]
|
|
reason: str
|
|
status: ActionStatus
|
|
created_at: datetime
|
|
expires_at: datetime
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
class ActionApproveRequest(BaseModel):
|
|
# Itt akár extra jelszót vagy MFA tokent is kérhetnénk a jövőben
|
|
comment: Optional[str] = None
|
|
|
|
class SecurityStatusResponse(BaseModel):
|
|
total_pending: int
|
|
critical_logs_last_24h: int
|
|
emergency_locks_active: int |