albs_analytics/build_analitycs/build_analytics/models/build_db.py
2023-02-28 18:28:48 +01:00

13 lines
285 B
Python

from typing import Optional
from pydantic import BaseModel, HttpUrl # pylint: disable=no-name-in-module
class BuildDB(BaseModel):
"""
Build as it received from/sent to database
"""
id: int
url: HttpUrl
created_at: int
finished_at: Optional[float] = None