Merge branch 'giane' of https://github.com/BryamE/ProyectoLauck into bryam

This commit is contained in:
Bryam105
2026-05-22 11:56:27 -03:00
16 changed files with 920 additions and 238 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();
});