Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate types from prisma schema models #5655

Open
jjordan-quantum opened this issue Jan 10, 2024 · 1 comment
Open

Generate types from prisma schema models #5655

jjordan-quantum opened this issue Jan 10, 2024 · 1 comment

Comments

@jjordan-quantum
Copy link

Is there a way to use the models as types? IE generate types from the models in the schema, like the image below from this page. I would like the types on the right to be generated from schema models on the left. Is this possible?

generated-schema

@muhaimincs
Copy link

have a look at zod-prisma-types npm package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants