I tried to create a relation between 2 database with an intermediate database but it's not displayed in my /docs (i m using fastapi)
I using multiple files for models and juste basic request sql (see below).
I've read another github issue that say that i need to downgrade my version of sqlalchemy and upgrade my version of fastapi but nothing make it works, i need to know if it's a problem with sqlmodel or if i am the problem.
Operating System
Linux
Operating System Details
I use arch with a local database on postgres
SQLModel Version
latest (0.0.6)
Python Version
3.10
Additional Context
the function that i use for post a user by my docs on fastapi:
async def post_users(user: UserCreate):
with Session(engine) as session:
db_user = User.from_orm(user)
session.add(db_user)
session.commit()
session.refresh(db_user)
return db_user
Activity
markzhang0928 commented on Jul 29, 2022
#383 (comment)
YuriiMotov commented on Aug 7, 2025
See #315
It was fixed by #461.