From 0192a9425a7812a8d2c1ca7ef90128da93d57710 Mon Sep 17 00:00:00 2001 From: Vladimir Bagdeev <52496230+Shireee@users.noreply.github.com> Date: Wed, 1 Apr 2026 21:15:58 +0300 Subject: [PATCH] Remove duplicate @default remarks from prisma-schema-reference.mdx --- .../content/docs/orm/reference/prisma-schema-reference.mdx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/docs/content/docs/orm/reference/prisma-schema-reference.mdx b/apps/docs/content/docs/orm/reference/prisma-schema-reference.mdx index ad9a4bd4c0..5f9fd2ca17 100644 --- a/apps/docs/content/docs/orm/reference/prisma-schema-reference.mdx +++ b/apps/docs/content/docs/orm/reference/prisma-schema-reference.mdx @@ -1531,6 +1531,7 @@ Defines a [default value for a field](/orm/prisma-schema/data-model/models#defin - Default values that cannot yet be represented in the Prisma schema are represented by the [`dbgenerated()` function](#dbgenerated) when you use [introspection](/orm/prisma-schema/introspection). - Default values are not allowed on relation fields in the Prisma schema. Note however that you can still define default values on the fields backing a relation (the ones listed in the `fields` argument in the `@relation` attribute). A default value on the field backing a relation will mean that relation is populated automatically for you. - Default values can be used with [scalar lists](/orm/prisma-client/special-fields-and-types/working-with-scalar-lists-arrays) in databases that natively support them. +- JSON data. Note that JSON needs to be enclosed with double-quotes inside the `@default` attribute, e.g.: `@default("[]")`. If you want to provide a JSON object, you need to enclose it with double-quotes and then escape any internal double quotes using a backslash, e.g.: `@default("{ \"hello\": \"world\" }")`. ##### Relational databases @@ -1547,10 +1548,6 @@ Defines a [default value for a field](/orm/prisma-schema/data-model/models#defin - [`ulid()`](#ulid) - [`nanoid()`](#nanoid) - [`now()`](#now) -- Default values that cannot yet be represented in the Prisma schema are represented by the [`dbgenerated(...)` function](#dbgenerated) when you use [introspection](/orm/prisma-schema/introspection). -- Default values are not allowed on relation fields in the Prisma schema. Note however that you can still define default values on the fields backing a relation (the ones listed in the `fields` argument in the `@relation` attribute). A default value on the field backing a relation will mean that relation is populated automatically for you. -- Default values can be used with [scalar lists](/orm/prisma-client/special-fields-and-types/working-with-scalar-lists-arrays) in databases that natively support them. -- JSON data. Note that JSON needs to be enclosed with double-quotes inside the `@default` attribute, e.g.: `@default("[]")`. If you want to provide a JSON object, you need to enclose it with double-quotes and then escape any internal double quotes using a backslash, e.g.: `@default("{ \"hello\": \"world\" }")`. ##### MongoDB