# generated by datamodel-codegen:
#   filename:  data.json
#   timestamp: 2021-01-27T04:45:45+00:00

from __future__ import annotations

from typing import Any, List, Optional

from pydantic import BaseModel


class Datum(BaseModel):
    id: Optional[int]
    timestamp: Optional[int]
    session_key: Optional[int]
    rating_key: Optional[int]
    user_id: Optional[int]
    user: Optional[str]
    notifier_id: Optional[int]
    agent_id: Optional[int]
    agent_name: Optional[str]
    notify_action: Optional[str]
    subject_text: Optional[str]
    body_text: Optional[str]
    success: Optional[int]


class Data(BaseModel):
    recordsFiltered: Optional[int]
    recordsTotal: Optional[int]
    data: Optional[List[Datum]]
    draw: Optional[int]


class Response(BaseModel):
    result: Optional[str]
    message: Any
    data: Data


class Model(BaseModel):
    response: Response
