-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Any way to keep enums singular when table names are plural? #39
Comments
I think we ended up managing table & enum case simultaneously, so at this point it's "because legacy". we could probably add |
That would be great! Do you have time to do this in 1-2 weeks, or will my help be needed? |
I'd love your help! I'm swamped at work this week with some new production rollouts. If you decide to just implement red-green TDD works pretty well in this repo, haven't had any complaints yet. I think the pattern for test cases is pretty easy to repeat, but let me know if it looks weird. Also, I'm happy to provide some directions on what I think needs to be updated, but my gut feeling is that it'll look pretty clear after a bit. Oh, and I think both |
Hey!
I have the following schema:
And I'm running CLI tool as follows:
prisma-case-format --file ./prisma/schema.prisma --map-table-case snake,plural
So, I need to keep
enum
@@map
singular. Do we have any way to achieve that?In other words, I need to manage
enum
transform options separately from table ones.Thanks for great tool!
The text was updated successfully, but these errors were encountered: