michaeldrennen / Geonames

A Laravel (php) package to interface with the geo-location services at geonames.org.
MIT License
89 stars 38 forks source link

Foreign keys #36

Open wrabit opened 4 years ago

wrabit commented 4 years ago

I was just thinking geonames could be laravel-ized and low and behold... !

I don't need the full database of geonames. For example in a current project i need cities with their countries, administrative areas, continents etc for cities with a population over 10,000.

Is there a reason why there is no foreign keys from geonames table to the admin tables, alternate names, hierarchy (parent and child)?

wrabit commented 4 years ago

Great work so far btw!

michaeldrennen commented 4 years ago

Thanks! The really simple answer is, I didn't need them. I built this for a project of my own, and I didn't need those relations. I'll take a look at adding them. Shouldn't be difficult.

michaeldrennen commented 3 years ago

When you say "foreign key" are you meaning relationships in the Models, or foreign key constraints at the database level?