| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateFeaturesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('features', function (Blueprint $table) {
- $table->id();
- $table->enum("type",["商品名称","订单类型","承运商","店铺类型"])->index()->comment("特征类型");
- $table->enum("logic",["包含","不包含","等于","小于","小于等于","大于","大于等于"])->index()->comment("逻辑");
- $table->string("describe")->comment("特征");
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('features');
- }
- }
|