1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateMemberGroupTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('member_group', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string("name")->nullable()->comment('分组名称');
- $table->tinyInteger('is_suggest')->default(0)->comment('是否推荐 0不推荐 1推荐');
- $table->softDeletes();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('member_group');
- }
- }
|