|
|
@@ -15,15 +15,17 @@ return new class extends Migration
|
|
|
{
|
|
|
Schema::create('products_sku', function (Blueprint $table) {
|
|
|
$table->id();
|
|
|
- $table->foreignId('product_id')->constrained('products')->restrictOnDelete();
|
|
|
- $table->string('status'); // ordered, stock, shipped
|
|
|
- $table->string('rfid');
|
|
|
- $table->string('factory_number');
|
|
|
- $table->date('manufacture_date');
|
|
|
- $table->unsignedInteger('service_life'); //срок эксплуатации
|
|
|
- $table->string('certificate_number');
|
|
|
- $table->date('certificate_date');
|
|
|
- $table->string('certificate_issuer');
|
|
|
+ $table->foreignId('product_id') // id продукта
|
|
|
+ ->constrained('products')->restrictOnDelete();
|
|
|
+ $table->string('status')->nullable(); // ordered, shipped, stock
|
|
|
+ $table->string('rfid')->nullable(); // номер RFID метки
|
|
|
+ $table->string('factory_number')->nullable(); // номер заказа на фабрике
|
|
|
+ $table->date('manufacture_date')->nullable(); // дата производства
|
|
|
+ $table->unsignedInteger('service_life')->nullable(); // срок эксплуатации, месяцев
|
|
|
+ $table->string('certificate_number')->nullable(); // номер сертификата
|
|
|
+ $table->date('certificate_date')->nullable(); // дата выдачи сертификата
|
|
|
+ $table->string('certificate_issuer')->nullable(); // орган сертификации
|
|
|
+ $table->string('certificate_type')->nullable(); // декларация, сертификат, отказное письмо
|
|
|
|
|
|
$table->softDeletes();
|
|
|
$table->timestamps();
|