Use model primary key field

Hey here is the pull request. If there is no attribute with primaryKey: true defined in the model it will default to 'id'.

Glad to contribute to this project :)