Leewinner1

Results 2 comments of Leewinner1

When dealing with relational models,sqlalchemy only needs to define relationships on one side,sqlmodel needs to define relationships on both sides, and the complexity of the model class is very difficult...

解决了通过重写get_select方法,调用父类的get_select方法能得到 当前模型类的sql语句,在通过返回外连接到需要关联的表即可,但是自关联关系的模型类,我目前还没有办法解决如何定义?如何查询? ![image](https://github.com/amisadmin/fastapi-amis-admin/assets/61162308/536495b1-cd93-4cbe-9022-5ccbd3cd13ae)