When I run `npx prisma db pull` it is using a plur...
# orm-help
j
When I run
npx prisma db pull
it is using a plural for a one-to-many foreign key (e.g. I have a key called
control_id
but it generates a field on the model called
controls
- not
control
) is that a bug?
r
@James Pickard đŸ‘‹ That’s fine, you can simply rename the field as it’s a virtual one. It will persist throughout subsequent
db pull
commands.
j
Ah got it. It seems odd for the field to be pluralized in this case though. I guess it’s just copying the model name?