# /opt/docker/dev/service_finder/backend/app/schemas/admin_security.py
from pydantic import BaseModel, ConfigDict
from datetime import datetime
from typing import Optional, Any, Dict
from app.models 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

    model_config = ConfigDict(from_attributes=True)

class SecurityStatusResponse(BaseModel):
    total_pending: int
    critical_logs_last_24h: int
    emergency_locks_active: int

