mirror of
https://github.com/strapi/strapi.git
synced 2025-10-27 16:10:08 +00:00
Updated models to document mongodbs index
This commit is contained in:
parent
012b0c5e0c
commit
cbcd8749a3
@ -56,7 +56,7 @@ If you're using SQL databases, you should use the native SQL constraints to appl
|
||||
|
||||
- `required` (boolean) — if true adds a required validator for this property.
|
||||
- `unique` (boolean) — whether to define a unique index on this property.
|
||||
- `index` (boolean) — adds an index on this property, this will use the default mongodb index for the type and will run in the background.
|
||||
- `index` (boolean) — adds an index on this property, this will create a [single field index](https://docs.mongodb.com/manual/indexes/#single-field) that will run in the background.
|
||||
- `max` (integer) — checks if the value is greater than or equal to the given minimum.
|
||||
- `min` (integer) — checks if the value is less than or equal to the given maximum.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user