I have designed RESTful API with Postgresql as a db. Primarly I used to have just one table in database named Place and one model in my API which looks like: