table sie
This commit is contained in:
@@ -33,6 +33,14 @@ class Products(db.Model):
|
||||
banner = db.Column(db.String(100), nullable=True)
|
||||
|
||||
|
||||
members_products = relationship(
|
||||
"MembersProducts",
|
||||
primaryjoin="MembersProducts.product_id == Products.product_id",
|
||||
foreign_keys=[product_id],
|
||||
back_populates="products",
|
||||
)
|
||||
|
||||
|
||||
# members_products = relationship(
|
||||
# "MembersProducts",
|
||||
# primaryjoin="MembersProducts.product_id == Products.product_id",
|
||||
|
||||
Reference in New Issue
Block a user