"""Vulnerability DTO"""

from dataclasses import dataclass, field
from typing import Optional, Dict, Any
from decimal import Decimal


@dataclass
class VulnerabilityDTO:
    """漏洞数据传输对象（资产表用）"""
    target_id: int
    url: str
    vuln_type: str
    severity: str
    source: str = ""
    cvss_score: Optional[Decimal] = None
    description: str = ""
    raw_output: Dict[str, Any] = field(default_factory=dict)
