from pydantic import BaseModel
from typing import List, Optional


class StatusEntity(BaseModel):
    id: Optional[int] = None
    name: str
    orders: Optional[List[int]] = None

    class Config:
        from_attributes = True
