from typing import Optional

from sqlalchemy import UniqueConstraint
from sqlmodel import Field, Relationship, SQLModel

from db.base import BaseDBModel
from model.item import Item
from model.warehouse import Warehouse


class InventoryEditableFields(SQLModel):
    item_id: int = Field(foreign_key="item.id")
    warehouse_id: int = 