2018_11_29_135536_create_company_statistics_table.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateCompanyStatisticsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('company_statistics', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('company_id')->comment('企业ID');
  17. $table->integer('uid')->comment('查看用户ID,0表示游客');
  18. $table->tinyInteger('utype')->default('2')->comment('查看用户类型(1:企业用户,2:个人用户,0:游客)');
  19. $table->integer('job_id')->comment('职位ID');
  20. $table->tinyInteger('source')->comment('来源(1pc 2触屏 3移动)');
  21. $table->tinyInteger('apply')->comment('是否申请职位(1:是,0:否)');
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::dropIfExists('company_statistics');
  33. }
  34. }