|
|
@@ -0,0 +1,39 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Illuminate\Database\Migrations\Migration;
|
|
|
+use Illuminate\Database\Schema\Blueprint;
|
|
|
+use Illuminate\Support\Facades\Schema;
|
|
|
+
|
|
|
+class CreateOwnerWorkCoefficientTable extends Migration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Run the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function up()
|
|
|
+ {
|
|
|
+ Schema::create('owner_work_coefficient', function (Blueprint $table) {
|
|
|
+ $table->id();
|
|
|
+ $table->bigInteger('owner_id')->comment('货主id');
|
|
|
+ $table->bigInteger('work_coefficient_type_id')->comment('工作量类型id');
|
|
|
+ $table->bigInteger('work_coefficient_type_detail_id')->comment('工作量详情类型id');
|
|
|
+ $table->bigInteger('inventory')->nullable()->comment('库存工作系数');
|
|
|
+ $table->bigInteger('return_coef')->nullable()->comment('退货工作系数');
|
|
|
+ $table->bigInteger('receive_coef')->nullable()->comment('收货工作系数');
|
|
|
+ $table->bigInteger('deliver_coef')->nullable()->comment('发货工作系数');
|
|
|
+ $table->bigInteger('process_coef')->nullable()->comment('加工工作系数');
|
|
|
+ $table->timestamps();
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reverse the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ Schema::dropIfExists('owner_work_coefficient');
|
|
|
+ }
|
|
|
+}
|