Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

City #18

Open
drewroberts opened this issue Feb 17, 2021 · 3 comments · Fixed by #35
Open

City #18

drewroberts opened this issue Feb 17, 2021 · 3 comments · Fixed by #35
Labels
model description Description of a model perpetual Never ending issues
Projects

Comments

@drewroberts
Copy link
Member

Model & table migration for Cities. ZIP Codes #17 will have primary and multiple secondary options for Cities. Need to pull this list of unique US City names and store them in the https://github.com/tipoff/address database and API.

@arwaawan3
Copy link
Contributor

So states have a one to many relationship with zip codes and cities also have a one to many relationship with zip codes. Little unclear on the "multiple secondary options for cities" part.

@drewroberts
Copy link
Member Author

Let's just create a many-to-many relationship with Cities & ZIP's (#17) and on that pivot table, add a boolean field for primary so we can mark if a city name is the primary one for the ZIP Code.

@drewroberts
Copy link
Member Author

I'm making a big change to this model. City will now include the State (#16) and be an actual list of every US City for Domestic Addresses (#19). It will no longer be a list of unique City names. We'll have to get a different solution for Cities when we add Foreign Addresses (#51) since this table will only be for US Cities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model description Description of a model perpetual Never ending issues
Projects
Models
Model Descriptions
Development

Successfully merging a pull request may close this issue.

3 participants