Update models.md

The Model options specified are only used on strapi-hook-bookshelf. State it clearly
This commit is contained in:
Javier Castro 2018-11-01 13:11:28 -03:00 committed by GitHub
parent 4d76c4276f
commit 9158d58a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,8 @@ The info key on the model-json states information about the model. This informat
## Model options
The options key on the model-json states.
- `idAttribute`: This tells the model which attribute to expect as the unique identifier for each database row (typically an auto-incrementing primary key named 'id').
- `idAttributeType`: Data type of `idAttribute`, accepted list of value bellow:
- `idAttribute`: This tells the model which attribute to expect as the unique identifier for each database row (typically an auto-incrementing primary key named 'id'). _Only valid for strapi-hook-bookshelf_
- `idAttributeType`: Data type of `idAttribute`, accepted list of value bellow. _Only valid for strapi-hook-bookshelf_
## Define the attributes