How can I get information from 2 separate tables with a single request in Flask?
问题 class posts(db.Model): __tablename__ = "posts" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(100)) postName = db.Column(db.String(100)) postDescription = db.Column(db.String(500)) postLike = db.Column(db.Integer) class postComment(db.Model): __tablename__ = "postComment" id = db.Column(db.Integer, primary_key=True) postID = db.Column(db.Integer) senderName = db.Column(db.String(20)) commentPost = db.Column(db.String(300)) class PostsSchema(ma.Schema): class Meta: