feature/modelos-y-migraciones #3
|
@ -14,7 +14,6 @@ public function up(): void
|
|||
Schema::create('productos_caracteristicas', function (Blueprint $table) {
|
||||
$table->unsignedBigInteger('producto_id');
|
||||
$table->unsignedBigInteger('caracteristica_id');
|
||||
$table->timestamps();
|
||||
$table->primary(['producto_id','caracteristica_id']);
|
||||
$table->foreign('producto_id')->references('id')->on('productos');
|
||||
$table->foreign('caracteristica_id')->references('id')->on('caracteristicas');
|
||||
|
|
Loading…
Reference in New Issue