I am migrating from using mongodb to postgres in loopback 3. When I was using mongodb, auto generated ids were of type string. In case of postgres, auto generated id is of type number.
I have gone through the loopback documentation, it says:
The generated property indicates the ID will be automatically generated by the database. If true, the connector decides what type to use for the auto-generated key. For relational databases, such as Oracle or MySQL, it defaults to number.
So, according to the documentation, for relational databases, default id is of type number. How can I change this default to of type string?