"""Audit log schemas.""" from datetime import datetime from pydantic import BaseModel, ConfigDict class AuditLogRead(BaseModel): model_config = ConfigDict(from_attributes=True) id: int timestamp: datetime customer_id: int | None username: str action: str target: str | None result: str details: str | None ip_address: str | None class AuditLogPage(BaseModel): items: list[AuditLogRead] total: int page: int page_size: int