How to make such a multi input field?

Hello everybody.

I have a table:

sites: id user_id domain mirrors (json type)

I want to add mirrors like in the picture.

Maybe it's better to make a separate table for mirrors instead of using the json type? Which is better?

sites: id user_id domain mirrors (json type)

OR

sites: id user_id domain site_mirrors: site_id domain
image.png
Was this page helpful?