This is a classic 1-to-many relationship with every person can have many cars but one car is only linked to one person. (Otherwise you would have a n-to-m relationship which would need an other table to join both entities)
Easiest way for the simple scenario is to add a user ID (autoincrement / sequel) to table user and to add it also to the table cars.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.