albs_analytics/build_analitycs/build_analytics/models/build_task_db.py

16 lines
354 B
Python
Raw Normal View History

2023-02-27 19:51:53 +00:00
from typing import Optional
from pydantic import BaseModel # pylint: disable=no-name-in-module
2023-02-27 19:51:53 +00:00
class BuildTaskDB(BaseModel):
"""
BuildTask as it received from/sent to database
"""
id: int
name: str
2023-02-27 19:51:53 +00:00
build_id: int
arch_id: int
started_at: Optional[float] = None
finished_at: Optional[float] = None
status_id: int