from typing import TYPE_CHECKING, Any, Dict, Optional, Union
from uuid import UUID, uuid4

from pydantic import PositiveFloat, validator
from sqlmodel import Column, Field, Relationship, SQLModel
from sqlmodel.sql.sqltypes import GUID

if TYPE_CHECKING:
    from .user import User


class BaseItem(SQLModel):
    code: str = Field(description="Item code", min_length=1)
    name: str = 