php artisan migrate:fresh y php artisan importar:excel, les tengo que pasar el archivo csv

This commit is contained in:
gianella
2026-04-04 20:59:30 -03:00
parent d1467ca098
commit b4476431e4
9 changed files with 224 additions and 61 deletions
@@ -15,7 +15,7 @@ return new class extends Migration
$table->id();
$table->string('name');
$table->string('phone');
$table->string('email');
$table->string('email')->nullable();
$table->timestamps();
});
}
@@ -13,7 +13,7 @@ return new class extends Migration
{
Schema::create('products', function (Blueprint $table) {
$table->id();
$table->enum('type', ['bike', 'accessory', 'clothing', 'spare']); // Tipo de producto
$table->enum('type', ['bike', 'accessory', 'clothing', 'spare', 'children', 'skate', 'rollers','other']); // Tipo de producto
//$table->string('name');
//$table->string('sku')->unique()->nullable(); // Código de barras o interno
$table->text('name')->nullable();