K
K
kkoshakk2015-06-06 12:38:40
MySQL
kkoshakk, 2015-06-06 12:38:40

How to correctly create a table with mobile numbers of users?

I create a project on Laravel, created a users table, at first I wanted to put users' mobile numbers in it, but then I decided that there would be a huge number of users and each user might have more than one mobile number and decided to create a separate table in MySQL. How to properly implement this table?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeniy Odinets, 2015-06-06
@evgeniy2194

+---+---------+---------+
| id | user_id | number |
+---+---------+---------+

M
Muhammad, 2015-06-06
@muhammad_97

Create a table with two fields: phone_number and owner_id, where owner_id is the user ID in the users table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question