title: How to get Alembic to recognise SQLModel database model?
body: <p>Using <a href="https://github.com/tiangolo/sqlmodel" rel="noreferrer">SQLModel</a> how to get alembic to recognise the below model?</p>
  <pre><code>from sqlmodel import Field, SQLModel
  
  class Hero(SQLModel, table=True):
      id: int = Field(default=None, primary_key=True)
      name: str
      secret_name: str
      age: Optional[int] = None
  </code></pre>
  <p>One approach I've been looking at is to import the SQLalchemy model for Alembic but looking through the source code I can't find how to do that.</p>
  <p>How to make Alembic work with SQLModel models?</p>