Sfoglia il codice sorgente

工单商品信息 修改表结果

ajun 4 anni fa
parent
commit
3becc9fd53

+ 1 - 1
app/WorkOrderCommodities.php

@@ -16,8 +16,8 @@ class WorkOrderCommodities extends Model
     //
     protected $fillable = [
         'work_order_id',
-        'logistic_number',
         'commodity_id',
+        'sku',
         'amount',
     ];
 

+ 2 - 2
database/migrations/2021_09_22_160325_create_work_order_commodities_table.php

@@ -16,8 +16,8 @@ class CreateWorkOrderCommoditiesTable extends Migration
         Schema::create('work_order_commodities', function (Blueprint $table) {
             $table->id();
             $table->integer('work_order_id')->index()->comment('工单');
-            $table->string('logistic_number')->comment('sku');
-            $table->integer('commodity_id')->comment('sku');
+            $table->integer('commodity_id')->comment('商品id');
+            $table->string('sku')->comment('商品sku');
             $table->integer('amount')->comment('数量');
             $table->timestamps();
         });