I want to automatically fill a table when another table is filled by user.
here's the problem :
I have different products for rent (let's say cars), each product have different stock/quantity.
I want to develop a method that if a user/admin adds a new "Car Model" with 'stock = N' the method adds N new rows of data for each car.
the reason i need them to be stored separately is because each car has it's own attributes e.g. how many times has it been rented, need repair or not, damaged or not, etc.....