Merge branch 'giane' of https://github.com/BryamE/ProyectoLauck into PruebaMixGianeBryam
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user