2019_07_25_020244_create_complaint_suggestions_table.php 955 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateComplaintSuggestionsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('complaint_suggestions', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->string('mobile',16)->default('')->comment('预留手机号');
  17. $table->string('upload_user')->default('')->comment('上传用户');
  18. $table->integer('uid')->default(0)->comment('上传用户ID');
  19. $table->string('content',255)->default('')->comment('投诉内容');
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::dropIfExists('complaint_suggestions');
  31. }
  32. }