Build [v1.9.19]

This commit is contained in:
Daniel Bedeleanu
2026-04-14 20:44:01 +03:00
parent fcb187974e
commit 00ee4cf9c5
38 changed files with 2059 additions and 157 deletions

View File

@@ -23,6 +23,12 @@ class Category(Base):
items = relationship("Item", back_populates="category_rel")
class Color(Base):
__tablename__ = "colors"
id = Column(Integer, primary_key=True, index=True)
name = Column(String, unique=True, index=True)
class Item(Base):
__tablename__ = "items"
@@ -36,6 +42,10 @@ class Item(Base):
category_rel = relationship("Category", back_populates="items")
part_number = Column(String, index=True, nullable=True)
color = Column(String, index=True, nullable=True)
description = Column(String, nullable=True)
connector = Column(String, nullable=True)
size = Column(String, nullable=True)
ocr_text = Column(Text, nullable=True)
specs = Column(Text, nullable=True)
quantity = Column(Float, default=0.0)
min_quantity = Column(Float, default=1.0)