by faizshah · 5y ago · 0 comments
Or rather can I pass an existing pydantic class to SQLModel somehow?
In fact, I made a small utility library some time ago to create dynamic Pydantic models from SQLAlchemy models (https://github.com/tiangolo/pydantic-sqlalchemy), but that's only useful in a few cases, e.g. for response_model in FastAPI.