I am joining two models without a foreign key:
Models:
class Users(db.Model):
__tablename__ = \"Users\"
userName = db.Column(db.String, primary_k
Its an old post but I had a similar problem
result = session.query(models.Users).join(models.TimeOff, models.Users.userName == models.TimeOff.userName).all()
with this method, I can reach the features of the first object which is Users but not the TimeOff. I am wondering if it is possible to reach the secondary object's attributes. But I hope this helps.