You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
708 B
Python
34 lines
708 B
Python
|
|
from datetime import datetime
|
|
from typing import List, Optional
|
|
from uuid import UUID
|
|
|
|
from pydantic import Field
|
|
from src.models import DefultBase, Pagination
|
|
from src.scope_equipment_job.schema import ScopeEquipmentJobRead
|
|
|
|
class OverhaulJobBase(DefultBase):
|
|
pass
|
|
|
|
|
|
class OverhaulJobCreate(OverhaulJobBase):
|
|
job_ids: Optional[List[UUID]] = []
|
|
|
|
|
|
class OverhaulJobUpdate(OverhaulJobBase):
|
|
pass
|
|
|
|
class OverhaulActivity(DefultBase):
|
|
id: UUID
|
|
overhaul_scope_id: UUID
|
|
|
|
|
|
class OverhaulJobRead(OverhaulJobBase):
|
|
id: UUID
|
|
scope_equipment_job: ScopeEquipmentJobRead
|
|
overhaul_activity: OverhaulActivity
|
|
|
|
|
|
class OverhaulJobPagination(Pagination):
|
|
items: List[OverhaulJobRead] = []
|