| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveRomeTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_rome', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->binary('name')->comment('名');
- $table->bigInteger('uid')->index()->comment('红娘/月老');
- $table->bigInteger('jid')->index()->comment('女嘉宾');
- $table->bigInteger('nid')->index()->comment('男嘉宾');
- $table->tinyInteger('type')->default(1)->comment('1普通2专属');
- $table->tinyInteger('sex')->default(1)->comment('1男2女');
- $table->Integer('sort')->default(1)->comment('排序');
- $table->Integer('start')->comment('开始');
- $table->Integer('end')->comment('结束时间');
- $table->timestamps();
- $table->comment = '相亲直播间表';
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_rome');
- }
- }
|