12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateJobsSearchsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('jobs_searchs', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('company_id')->comment('企业id');
- $table->integer('wage')->comment('薪资')->nullable();
- $table->integer('stime')->comment('置顶时间');
- $table->integer('click')->comment('点击量');
- $table->double('map_x')->comment('地图x坐标');
- $table->double('map_y')->comment('地图y坐标');
- $table->string('jobs_name')->comment('职位名称');
- $table->string('companyname')->comment('企业名称');
- $table->string('key');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('jobs_searchs');
- }
- }
|