Add support for models whre primary key is not Integer type

Goal is to target models with UUIS as primary key type.
See tests as an example.