2019_07_08_124333_create_love_rome_table.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateLoveRomeTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('love_rome', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->binary('name')->comment('名');
  17. $table->bigInteger('uid')->index()->comment('红娘/月老');
  18. $table->bigInteger('jid')->index()->comment('女嘉宾');
  19. $table->bigInteger('nid')->index()->comment('男嘉宾');
  20. $table->tinyInteger('type')->default(1)->comment('1普通2专属');
  21. $table->tinyInteger('sex')->default(1)->comment('1男2女');
  22. $table->Integer('sort')->default(1)->comment('排序');
  23. $table->Integer('start')->comment('开始');
  24. $table->Integer('end')->comment('结束时间');
  25. $table->timestamps();
  26. $table->comment = '相亲直播间表';
  27. });
  28. }
  29. /**
  30. * Reverse the migrations.
  31. *
  32. * @return void
  33. */
  34. public function down()
  35. {
  36. Schema::dropIfExists('love_rome');
  37. }
  38. }