from enum import Enum
from uuid import UUID

from pydantic import BaseModel


class Status(str, Enum):
    free: str = "free"
    reserved: str = "reserved"


class Car(BaseModel):
    name: str
    company: str
    model: str
    status: Status
    chassis_no: UUID

426e8c2f3a364aef3545977f90f4b45d26e6469d
<mask token>

<mask token>


class Car(BaseModel):
    name: str
    company: str
    model: str
    status: Status
    chassis_no: UUID

<mask token>


class Status(str, Enum):
    free: str = 'free'
    reserved: str = 'reserved'


class Car(BaseModel):
    name: str
    company: str
    model: str
    status: Status
    chassis_no: UUID

from enum import Enum
from uuid import UUID
from pydantic import BaseModel


class Status(str, Enum):
    free: str = 'free'
    reserved: str = 'reserved'


class Car(BaseModel):
    name: str
    company: str
    model: str
    status: Status
    chassis_no: UUID

from enum import Enum
from uuid import UUID

from pydantic import BaseModel


class Status(str, Enum):
    free: str = "free"
    reserved: str = "reserved"


class Car(BaseModel):
    name: str
    company: str
    model: str
    status: Status
    chassis_no: UUID
