|
|
@@ -17,6 +17,10 @@ return new class extends Migration
|
|
|
$table->id();
|
|
|
$table->foreignId('product_id') // id продукта
|
|
|
->constrained('products')->restrictOnDelete();
|
|
|
+ $table->foreignId('order_id') // id заказа
|
|
|
+ ->nullable()
|
|
|
+ ->constrained('orders')
|
|
|
+ ->nullOnDelete();
|
|
|
$table->string('status')->nullable(); // ordered, shipped, stock
|
|
|
$table->string('rfid')->nullable(); // номер RFID метки
|
|
|
$table->string('factory_number')->nullable(); // номер заказа на фабрике
|