,
This commit is contained in:
@@ -13,8 +13,9 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('products', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('sku')->unique()->nullable(); // Código de barras o interno
|
||||
$table->enum('type', ['bike', 'accessory', 'clothing', 'service']);
|
||||
//$table->string('name');
|
||||
//$table->string('sku')->unique()->nullable(); // Código de barras o interno
|
||||
$table->text('description')->nullable();
|
||||
|
||||
$table->decimal('price', 10, 2); // Precio venta
|
||||
@@ -23,8 +24,8 @@ return new class extends Migration
|
||||
$table->integer('stock_quantity')->default(0);
|
||||
$table->integer('min_stock_alert'); // Alerta
|
||||
|
||||
$table->enum('type', ['bike', 'accessory', 'service']);
|
||||
$table->string('serial_number')->nullable(); // Solo para bicis
|
||||
|
||||
$table->string('rolled')->nullable(); // Solo para bicis
|
||||
|
||||
$table->foreignId('suppliers_id')->constrained()->default(1);
|
||||
$table->timestamps();
|
||||
|
||||
Reference in New Issue
Block a user