Need help with type issues on InferInsertModel and InferSelectModel

In the screenshot I have attached my user schema and I'm creating types for them using the InferInsertModel and InferSelectModel.

But however when I hover the type variables CreateUser and
User
I'm getting generic types instead of user schema type as you see in the second screenshot.

Am I doing anything wrong here?
Screenshot_2025-01-08_at_7.29.25_PM.png
Screenshot_2025-01-08_at_7.31.12_PM.png
Was this page helpful?