In the case of telephone, what is the correct type to store, the landline and mobile phone? With formatting mask or not?
It varies from programmer to programmer, but in my case I always do with mask formatting to make it easier to read the data or even return it. About storage I usually create Two tabelas
one for fixed and one for cell and I use the chave estrangeira
user in order to link.
And in case of address, how to store it? In several other fields such as street, neighborhood, number and city, or all in one/two only?
For this one I like to make the following architecture
Notice that I’m dismembering each address field in a table. And when it comes to putting everything together I use a inner join
.
BS.: I used a clear example that you can put up ZIP code, add-on etc.
Data types for specific columns for SQL database
– rray