2018_11_19_144828_create_jobs_searchs_table.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateJobsSearchsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('jobs_searchs', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('company_id')->comment('企业id');
  17. $table->integer('wage')->comment('薪资')->nullable();
  18. $table->integer('stime')->comment('置顶时间');
  19. $table->integer('click')->comment('点击量');
  20. $table->double('map_x')->comment('地图x坐标');
  21. $table->double('map_y')->comment('地图y坐标');
  22. $table->string('jobs_name')->comment('职位名称');
  23. $table->string('companyname')->comment('企业名称');
  24. $table->string('key');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::dropIfExists('jobs_searchs');
  36. }
  37. }