2
I have two tables, PRODUTOS
and INSUMOS
. To create a product I need several inputs, I would like to know how I should proceed with this relationship in Mysql.
I must create a table called COMPOSICAO
and in it work only with foreign key, this would be one way, there are other?
How should I proceed with this kind of worry in Laravel?
This will depend on the context or the scope. For you what this would be
COMPOSICAO
? Enjoy and make a [tour] too.– gato
I’ll give you an example of how I imagine
COMPOSICAO
, let’s say you will manufacture a car, which items make up the car, engine, gearbox, windshield etc.– PaulinhoCaP
Gives a survey on normal forms, in your case it applies to 3a normal form.http://aprendaplsql.com/datamodelling/
– Marcos Xavier