From 8ff58bdca4d560ce9d52a8c8d5070dcfbac54781 Mon Sep 17 00:00:00 2001 From: Olivier Lacan Date: Mon, 20 Nov 2023 06:43:24 -0500 Subject: [PATCH] Offer clear field @map example (#5473) --- .../200-api-reference/100-prisma-schema-reference.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/400-reference/200-api-reference/100-prisma-schema-reference.mdx b/content/400-reference/200-api-reference/100-prisma-schema-reference.mdx index 0f926bb7ec..660aab63ed 100644 --- a/content/400-reference/200-api-reference/100-prisma-schema-reference.mdx +++ b/content/400-reference/200-api-reference/100-prisma-schema-reference.mdx @@ -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")`. ## model field scalar types