diff --git a/app/Models/Caracteristica.php b/app/Models/Caracteristica.php new file mode 100644 index 0000000..d978baa --- /dev/null +++ b/app/Models/Caracteristica.php @@ -0,0 +1,17 @@ +belongsToMany(Producto::class); + } +} diff --git a/database/migrations/2024_03_12_201127_create_caracteristicas_table.php b/database/migrations/2024_03_12_201127_create_caracteristicas_table.php new file mode 100644 index 0000000..c12f53e --- /dev/null +++ b/database/migrations/2024_03_12_201127_create_caracteristicas_table.php @@ -0,0 +1,28 @@ +id(); + $table->string('name', 100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('caracteristicas'); + } +};