2018_10_11_185634_create_appeals_table.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateAppealsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('appeals', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('real_name')->comment('真实姓名');
  17. $table->string('mobile')->comment('手机号');
  18. $table->string('email')->comment('常用邮箱');
  19. $table->string('description')->comment('描述信息');
  20. $table->integer('subsite_id')->comment('分站信息(0:总站)');
  21. $table->tinyInteger('status')->comment('处理状态(1:已处理,0:未处理)');
  22. $table->timestamps();
  23. $table->softDeletes();
  24. });
  25. }
  26. /**
  27. * Reverse the migrations.
  28. *
  29. * @return void
  30. */
  31. public function down()
  32. {
  33. Schema::dropIfExists('appeals');
  34. }
  35. }