2020_07_24_072012_create_orders_table.php.bak 909 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateOrdersTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('orders', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->string("batch_id")->index()->nullable();
  17. $table->string("code")->index();
  18. $table->integer("owner_id")->nullable();
  19. $table->enum("status",['处理中','未处理','已处理','取消','异常'])->default('未处理');
  20. $table->string("wms_status");
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::dropIfExists('orders');
  32. }
  33. }