why I got error  return [StoredLogRecordDto.from_orm(model[0]) for model in model_list]
  File "pydantic/main.py", line 579, in pydantic.main.BaseModel.from_orm
pydantic.error_wrappers.ValidationError: 5 validation errors for StoredLogRecordDto
request_datetime
  field required (type=value_error.missing)
request_url
  field required (type=value_error.missing)
request_method
  field required (type=value_error.missing)
response_datetime
  field required (type=value_error.missing)
response_status_code
  field required (type=value_error.missing)
2023-05-25 09:05:22,145 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-05-25 09:05:22,145 INFO sqlalchemy.engine.Engine SELECT log.id, log.request_datetime, log.request_url, log.request_method, log.response_datetime, log.response_status_code, log.response_error_type, log.response_error_number, log.response_error_code, log.phone_number, log.duration 
FROM log 
 LIMIT $1::INTEGER
2023-05-25 09:05:22,145 INFO sqlalchemy.engine.Engine [cached since 274.7s ago] (10,)
2023-05-25 09:05:22,147 INFO sqlalchemy.engine.Engine ROLLBACK
INFO:     127.0.0.1:49370 - "GET /logging/log?limit=10 HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/fastapi/applications.py", line 276, in __call__
    await super().__call__(scope, receive, send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/home/boika/PycharmProjects/logging/venv/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await dependant.call(**values)
  File "/home/boika/PycharmProjects/logging/src/routes/logging_router.py", line 31, in get_log
    results_list = await repository.get_logs(
  File "/home/boika/PycharmProjects/logging/src/db/repository.py", line 41, in get_logs
    return mapper.map_model_list_to_dto(result.fetchall())
  File "/home/boika/PycharmProjects/logging/src/db/mapper.py", line 37, in map_model_list_to_dto
    return [StoredLogRecordDto.from_orm(model[0]) for model in model_list]
  File "/home/boika/PycharmProjects/logging/src/db/mapper.py", line 37, in <listcomp>
    return [StoredLogRecordDto.from_orm(model[0]) for model in model_list]
  File "pydantic/main.py", line 579, in pydantic.main.BaseModel.from_orm
pydantic.error_wrappers.ValidationError: 5 validation errors for StoredLogRecordDto
request_datetime
  field required (type=value_error.missing)
request_url
  field required (type=value_error.missing)
request_method
  field required (type=value_error.missing)
response_datetime
  field required (type=value_error.missing)
response_status_code
  field required (type=value_error.missing)

here my code async def get_logs(
    session: AsyncSession,
    limit: Optional[int] = 10,
    request_url: Optional[str] = None,
    response_status_code: Optional[int] = None,
    phone_number: Optional[str] = None,
) -> List[StoredLogRecordDto]:
    """
    Get logs from database

    **limit**: number of logs to get from database (default=10)
    **request_url**: optional filter logs by request_url
    **response_status_code**: optional filter logs by response_status_code
    **response_error_code**: optional filter logs by response_error_code
    **phone_id**: optional filter logs by phone_id

    :return: List of StoredLogRecordDto
    """
    query = select(log).limit(limit)

    if filter:
        if request_url is not None:
            query = query.where(log.c.request_url == request_url)
        if response_status_code is not None:
            query = query.where(log.c.response_status_code == response_status_code)
        if phone_number is not None:
            query = query.where(log.c.phone_number == phone_number)

    result = await session.execute(query)

    return mapper.map_model_list_to_dto(result.fetchall()) class Log(Base):
    __tablename__ = "log"

    id: Mapped[int] = mapped_column(primary_key=True)
    request_datetime: Mapped[datetime] = mapped_column(TIMESTAMP(timezone=True), nullable=False)
    request_url: Mapped[str] = mapped_column(Text, nullable=False)
    request_method: Mapped[str] = mapped_column(String(8), nullable=False)
    response_datetime: Mapped[datetime] = mapped_column(TIMESTAMP(timezone=True), nullable=False)
    response_status_code: Mapped[int] = mapped_column(SmallInteger, nullable=False)
    response_error_type: Mapped[str] = mapped_column(String(2), nullable=False)
    response_error_number: Mapped[str] = mapped_column(String(2), nullable=False)
    response_error_code: Mapped[str] = mapped_column(String(5), nullable=True)
    phone_number: Mapped[str] = mapped_column(String(10), nullable=True)
    duration: Mapped[timedelta] = mapped_column(Interval, nullable=False)


log = Log.__table__  class BaseLogRecordDto(BaseModel):
    """
    DTO that contains general fields
    """
    request_datetime: datetime
    request_url: str
    request_method: str
    response_datetime: datetime
    response_status_code: int
    phone_number: Optional[str]


class LogRecordDto(BaseLogRecordDto):
    """
    DTO that contains response_error_code as single string. In this form we get the data
    """
    response_error_code: Optional[str]


class StoredLogRecordDto(BaseLogRecordDto):
    """
    DTO that contains response_error_code as three strings. In this form we return the data
    """
    response_error_type: Optional[str]
    response_error_number: Optional[str]
    response_error_code: Optional[str]

    class Config:
        orm_mode = True