Python Labu banyak ke banyak hubungan db
from sqlalchemy.orm import relationship, backref
class Order(BaseModel):
__tablename__ = 'orders'
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey('users.id'))
product_id = db.Column(db.Integer, db.ForeignKey('products.id'))
Relieved Reindeer