Updated models to document mongodbs index

This commit is contained in:
Michael Barajas 2018-12-19 14:40:33 -05:00 committed by GitHub
parent 012b0c5e0c
commit cbcd8749a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.