diff --git a/content/200-orm/500-reference/100-prisma-schema-reference.mdx b/content/200-orm/500-reference/100-prisma-schema-reference.mdx index b322776e98..fd50aadb1c 100644 --- a/content/200-orm/500-reference/100-prisma-schema-reference.mdx +++ b/content/200-orm/500-reference/100-prisma-schema-reference.mdx @@ -3150,7 +3150,7 @@ model User { ### `nanoid()` -Generated values based on the [Nano ID](https://github.com/ai/nanoid) spec. `nanoid()` also accepts an integer value that indicates the target _length_ of the generated ID value, e.g. `nanoid(16)`. The default value is `21`. +Generated values based on the [Nano ID](https://github.com/ai/nanoid) spec. `nanoid()` accepts an integer value between 2 and 255 that specifies the _length_ of the generated ID value, e.g. `nanoid(16)` will generated ID with 16 characters. If you don't provide a value to the nanoid() function, the default value is 21. :::info @@ -3173,7 +3173,7 @@ There are two main differences between Nano ID and UUID v4: #### Examples -##### Generate `nanoid()` values (with 21 characters) as IDs +##### Generate `nanoid()` values with 21 characters as IDs @@ -3198,7 +3198,7 @@ model User { -##### Generate `nanoid()` values (with 16 characters) as IDs +##### Generate `nanoid()` values with 16 characters as IDs