| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveGroupTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_group', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->bigInteger('uid')->index()->comment('用户id');
- $table->bigInteger('admin')->default(0)->comment('管理员id');
- $table->bigInteger('im_gid')->index()->comment('群ID');
- $table->binary('name')->comment('话题名');
- $table->binary('description')->nullable()->comment('描述');
- $table->Integer('girl_size')->default(0)->comment('女用户数');
- $table->Integer('sort')->default(0)->comment('排序');
- $table->Integer('male_size')->default(0)->comment('男用户数');
- $table->timestamps();
- $table->comment = '群表';
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_group');
- }
- }
|