albs_analytics/build_analitycs/build_analytics/models/build_task_db.py

15 lines
303 B
Python
Raw Normal View History

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