15 lines
303 B
Python
15 lines
303 B
Python
|
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
|