2019_11_05_113250_create_rejected_bills_table.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateRejectedBillsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('rejected_bills', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->bigInteger('id_owner')->index();
  17. $table->string('order_number')->index()->nullable();
  18. $table->string('sender')->index()->nullable();
  19. $table->string('mobile_sender')->index()->nullable();
  20. $table->string('logistic_number')->index()->nullable();
  21. $table->string('logistic_number_return')->index();
  22. $table->string('remark')->nullable();
  23. $table->bigInteger('id_logistic_return');
  24. $table->decimal('fee_collected')->nullable();
  25. $table->boolean('is_loaded')->default(false)->comment('null是无需入库,0是否,1为是,2为待推单。');
  26. $table->boolean('is_checked')->default(false)->nullable();
  27. $table->string('checked_numbers')->index()->nullable();
  28. $table->boolean('is_finished')->default(false)->nullable();
  29. $table->bigInteger('id_operator')->nullable();
  30. $table->timestamps();
  31. $table->timestamp('deleted_at')->nullable()->index();
  32. $table->timestamp('created_at')->nullable()->index()->change();
  33. });
  34. }
  35. /**
  36. * Reverse the migrations.
  37. *
  38. * @return void
  39. */
  40. public function down()
  41. {
  42. Schema::dropIfExists('rejected_bills');
  43. }
  44. }