cambios para importar el excel

This commit is contained in:
gianella
2026-04-18 16:01:30 -03:00
parent 87e4f44fe0
commit de67293e99
4 changed files with 101 additions and 94 deletions
@@ -13,20 +13,13 @@ return new class extends Migration
{
Schema::create('products', function (Blueprint $table) {
$table->id();
$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->enum('type', ['bike', 'accessory', 'clothing', 'spare', 'children', 'skate', 'rollers','other']);
$table->text('name')->nullable();
$table->decimal('price', 10, 2); // Precio venta
$table->decimal('cost', 10, 2)->nullable(); // Costo (solo admin)
$table->text('description')->nullable();;
$table->decimal('price', 10, 2); // Precio
$table->decimal('cost', 10, 2)->nullable(); // Costo
$table->integer('stock_quantity')->default(100);
$table->integer('min_stock_alert')->default(5); // Alerta
$table->string('serial_number')->nullable(); // Solo para bicis
$table->foreignId('suppliers_id')->constrained()->default(1);
$table->timestamps();
});