| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateOrdersTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('orders', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string("batch_id")->index()->nullable();
- $table->string("code")->index();
- $table->integer("owner_id")->nullable();
- $table->enum("status",['处理中','未处理','已处理','取消','异常'])->default('未处理');
- $table->string("wms_status");
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('orders');
- }
- }
|