from pydantic import BaseModel class DashboardCreate(BaseModel): name: str is_shared: bool = False class DashboardOut(BaseModel): id: int name: str is_shared: bool class PanelCreate(BaseModel): title: str router_id: int config: dict # {"interfaces":[...],"metrics":[...],"interval_ms":1000,"window":120} class PanelOut(BaseModel): id: int dashboard_id: int title: str router_id: int config: dict