I'm building an application that deals with shipping (now in the US, but eventually internationally), and I'm trying to figure out the best canonical fields to user to store addresses in an SQL database.
My initial guess (with examples) is:
- name_1 (Hulk Hogan)
- name_2 (C/O World Wrestling Federation)
- address_1 (12345 Suplex Ave.)
- address_2 (Suite 420)
- city (New York)
- state (NY)
- zip (10001)
- country (USA)
So my questions are:
- Do these fields work for all addresses worldwide?
- Is there a standardized set of fields that I should be adhering to?
- Should
name_1/name_2
andaddress_1/address_2
each just be a single field broken apart by newline characters?