What would be the best way to store barcodes for products? I have a situation where the same product can have many different barcodes, let's say I have 1 product and this product can have 100 different barcodes (which must be unique).
Is it better to store those barcodes in separate table? For example, the following diagram
means I will have 1 product and 100 rows with different barcodes for this product (same name and everything).
Or is it better to have 100 products with the same name, each with barcode column, as shown below?