2018_10_12_135913_create_feedbacks_table.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateFeedbacksTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('feedbacks', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('type')->comment('意见类型(1:建议 2:意见 3:求助 4:投诉)');
  17. $table->string('content')->comment('内容');
  18. $table->string('contact')->comment('联系方式(qq、邮箱、电话信息)');
  19. $table->tinyInteger('audit')->comment('处理状态(1:已处理,0:未处理)');
  20. $table->integer('subsite_id')->comment('分站信息(0:总站)');
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::dropIfExists('feedbacks');
  32. }
  33. }