Skip to content

Commit

Permalink
Offer clear field @Map example (#5473)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlacan authored Nov 20, 2023
1 parent 976d1c8 commit 8ff58bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ model User {
- Typically spelled in camelCase
- Must adhere to the following regular expression: `[A-Za-z][A-Za-z0-9_]*`

> **Note**: You can use the [`@map` attribute](#map) to map a field name (for example, `MyField`) to a column with a different name that does not match field naming conventions (for example, `myField`).
> **Note**: You can use the [`@map` attribute](#map) to [map a field name to a column](/concepts/components/prisma-client/working-with-prismaclient/use-custom-model-and-field-names) with a different name that does not match field naming conventions: e.g. `myField @map("my_field")`.
## <inlinecode>model</inlinecode> field scalar types

Expand Down

1 comment on commit 8ff58bd

@vercel
Copy link

@vercel vercel bot commented on 8ff58bd Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs-git-main-prisma.vercel.app
docs-prisma.vercel.app
prisma2-docs.vercel.app

Please sign in to comment.