A use-case was brought to my attention by
@Richard Ku
He wanted a tool to do the opposite of what
https://github.com/valentinpalkovic/prisma-json-schema-generator does
So, I have built it and just released it minutes ago!
You can check it out here:
https://github.com/omar-dulaimi/json-to-prisma-schema-convertor
Of course, as I mentioned, it only converts whatever that is available in the json schema; so some attributes have to be manually entered like
@relaion
for example, In addition to the datasource and client blocks.
As a side note, if you think the Prisma ecosystem is missing something, please let me know, maybe I or we can work on it together 😁.