File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ class Item(Base):
127127 user_id = Column (Integer , ForeignKey ("user.id" ))
128128 brand_id = Column (Integer , ForeignKey ("brand.id" ))
129129 product_id = Column (Integer , ForeignKey ("product.id" ))
130+ product_variant_id = Column (Integer , ForeignKey ("productvariant.id" ))
130131 category_id = Column (Integer , ForeignKey ("itemcategory.id" ))
131132 sort_order = Column (Integer , default = 0 )
132133 removed = Column (Boolean , default = False )
@@ -147,6 +148,7 @@ class Item(Base):
147148 # Relationships
148149 brand = relationship ("Brand" , lazy = "joined" )
149150 product = relationship ("Product" , lazy = "joined" )
151+ product_variant = relationship ("ProductVariant" , lazy = "joined" )
150152 category = relationship ("ItemCategory" ,
151153 lazy = "joined" ,
152154 foreign_keys = [category_id ],
You can’t perform that action at this time.
0 commit comments