Join Slack
Powered by
<@U02681BLLUV> You can use the @map and @@map attr...
# orm-help
s
Sabin Adams
02/08/2022, 1:10 AM
@Peter Kellner
You can use the @map and @@map attributes to map fields in your schema to the underlying names in the database. Essentially allowing you to pick whatever convention you like for the client while maintaining the names in the actual DB.
https://www.prisma.io/docs/concepts/components/prisma-schema/names-in-underlying-database#mapping-collectiontable-and-fieldcolumn-names
Open in Slack
Previous
Next