Start here
The safe first move
Replace orm_mode=True with from_attributes=True in model_config.
Stop before automation when: Files with other removed Config keys. Models that also need validator migration.
Target shape
class UserOut(BaseModel):
model_config = ConfigDict(from_attributes=True)