import datetime
from typing import Optional
from pydantic import BaseModel


class ItemBase(BaseModel):
    ...


class ItemCreate(ItemBase):
    name: str
    description: Optional[str] = None
    is_active: Optional[bool] = None


class ItemUpdate(ItemBase):
    name: Optional[str] = None
    description: Optional[str] = None
    is_active: Optional[bool] = None


class Item(ItemBase):
    id: int
    name: str
    description: Optional[str] = None
    is_active: bool
    created_timestamp: datetime.datetime


    class Config:
        orm_mode = True

632671402da2f83c02423c1ce0f304b495215eb6
<mask token>


class ItemUpdate(ItemBase):
    name: Optional[str] = None
    description: Optional[str] = None
    is_active: Optional[bool] = None


class Item(ItemBase):
    id: int
    name: str
    description: Optional[str] = None
    is_active: bool
    created_timestamp: datetime.datetime


    class Config:
        orm_mode = True

<mask token>


class ItemCreate(ItemBase):
    name: str
    description: Optional[str] = None
    is_active: Optional[bool] = None


class ItemUpdate(ItemBase):
    name: Optional[str] = None
    description: Optional[str] = None
    is_active: Optional[bool] = None


class Item(ItemBase):
    id: int
    name: str
    description: Optional[str] = None
    is_active: bool
    created_timestamp: datetime.datetime


    class Config:
        orm_mode = True

<mask token>


class ItemBase(BaseModel):
    ...


class ItemCreate(ItemBase):
    name: str
    description: Optional[str] = None
    is_active: Optional[bool] = None


class ItemUpdate(ItemBase):
    name: Optional[str] = None
    description: Optional[str] = None
    is_active: Optional[bool] = None


class Item(ItemBase):
    id: int
    name: str
    description: Optional[str] = None
    is_active: bool
    created_timestamp: datetime.datetime


    class Config:
        orm_mode = True

import datetime
from typing import Optional
from pydantic import BaseModel


class ItemBase(BaseModel):
    ...


class ItemCreate(ItemBase):
    name: str
    description: Optional[str] = None
    is_active: Optional[bool] = None


class ItemUpdate(ItemBase):
    name: Optional[str] = None
    description: Optional[str] = None
    is_active: Optional[bool] = None


class Item(ItemBase):
    id: int
    name: str
    description: Optional[str] = None
    is_active: bool
    created_timestamp: datetime.datetime


    class Config:
        orm_mode = True
