|
|
@@ -0,0 +1,38 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Illuminate\Database\Migrations\Migration;
|
|
|
+use Illuminate\Database\Schema\Blueprint;
|
|
|
+use Illuminate\Support\Facades\Schema;
|
|
|
+
|
|
|
+class CreateOwnerFeeDetailsTable extends Migration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Run the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function up()
|
|
|
+ {
|
|
|
+ Schema::create('owner_fee_details', function (Blueprint $table) {
|
|
|
+ $table->id();
|
|
|
+ $table->bigInteger('owner_id')->index()->comment('外键货主');
|
|
|
+ $table->date('counting_month')->index()->comment('结算月');
|
|
|
+ $table->dateTime('worked_at')->index()->comment('作业时间');
|
|
|
+ $table->enum('type',["发货","收货","增值服务"])->index()->comment('类型');
|
|
|
+ $table->bigInteger('shop_id')->nullable()->index()->comment('外键店铺');
|
|
|
+ $table->string('operation_bill')->nullable()->comment('发/收/退货单号');
|
|
|
+ //TODO 字段与来源渠道无法确认 暂时搁置
|
|
|
+ $table->timestamps();
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reverse the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ Schema::dropIfExists('owner_fee_details');
|
|
|
+ }
|
|
|
+}
|