# sqlmodel_to_pydantic > A utility to automatically generate Pydantic request/response models from SQLModel classes. Ensures database models and API models remain perfectly synced to prevent type errors. - Author: AlishhShahid - Repository: AlishhShahid/Hackathon-two-todo-app - Version: 20260207182837 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/AlishhShahid/Hackathon-two-todo-app - Web: https://mule.run/skillshub/@@AlishhShahid/Hackathon-two-todo-app~sqlmodel_to_pydantic:20260207182837 --- --- name: sqlmodel_to_pydantic description: "A utility to automatically generate Pydantic request/response models from SQLModel classes. Ensures database models and API models remain perfectly synced to prevent type errors." --- # SQLModel to Pydantic Utility ## Instructions 1. **Input** - Provide a SQLModel class representing your database table. - Example: ```python from sqlmodel import SQLModel, Field class User(SQLModel, table=True): id: int = Field(default=None, primary_key=True) name: str email: str