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.

30 lines
568 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
class ScopeBase(DefultBase):
scope_name: Optional[str] = Field(None, title="Scope Name")
duration_oh: Optional[int] = Field(None, title="Duration OH")
crew: Optional[int] = Field(None, title="Crew")
class ScopeCreate(ScopeBase):
pass
class ScopeUpdate(ScopeBase):
pass
class ScopeRead(ScopeBase):
id: UUID
class ScopePagination(Pagination):
items: List[ScopeRead] = []