| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- class CreateCompanyStatisticsTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('company_statistics', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->integer('company_id')->comment('企业ID');
 
-             $table->integer('uid')->comment('查看用户ID,0表示游客');
 
-             $table->tinyInteger('utype')->default('2')->comment('查看用户类型(1:企业用户,2:个人用户,0:游客)');
 
-             $table->integer('job_id')->comment('职位ID');
 
-             $table->tinyInteger('source')->comment('来源(1pc 2触屏 3移动)');
 
-             $table->tinyInteger('apply')->comment('是否申请职位(1:是,0:否)');
 
-             $table->timestamps();
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('company_statistics');
 
-     }
 
- }
 
 
  |