Join Slack
Powered by
how do you explicitly declare table name for model...
# orm-help
j
jdkdev
06/02/2021, 4:02 PM
how do you explicitly declare table name for model in schema.prisma? (wanting it to be plural)
d
Dominic Hadfield
06/02/2021, 4:05 PM
@@map
for the table and `@map`for the field
Dominic Hadfield
06/02/2021, 4:05 PM
https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#mapping-model-names-to-tables
✅ 1
j
jdkdev
06/02/2021, 4:06 PM
thanks! for some reason I was thinking of @@map was like
@db
and I needed to do @@map(table: someting)
Open in Slack
Previous
Next