2018_09_29_015225_create_jobs_table.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateJobsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('jobs', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('company_id')->index()->comment('企业ID');
  17. $table->tinyInteger('valid')->default('1')->comment('职位状态:0无效1有效');
  18. $table->string('jobs_name')->comment('职位名称');
  19. $table->string('company_name')->comment('企业名称');
  20. $table->integer('company_addtime')->comment('企业添加时间');
  21. $table->tinyInteger('company_audit')->comment('公司审核状态:1核通过;2待审核;3审核未通过');
  22. $table->tinyInteger('emergency')->comment('紧急招聘:0否;1是');
  23. $table->integer('stick')->comment('职位置顶:0否;1是');
  24. $table->integer('nature')->comment('工作性质');
  25. $table->tinyInteger('sex')->default('1')->comment('性别:1男;2女;0不限');
  26. $table->string('age')->comment('年龄');
  27. $table->smallInteger('amount')->comment('招聘人数');
  28. $table->smallInteger('topclass')->comment('职位一级分类');
  29. $table->smallInteger('category')->comment('职位二级分类');
  30. $table->smallInteger('subclass')->comment('职位三级分类');
  31. $table->smallInteger('trade')->comment('行业ID');
  32. $table->smallInteger('scale')->comment('企业规模');
  33. $table->string('district')->comment('地区分类');
  34. $table->string('tag')->comment('标签分类');
  35. $table->smallInteger('education')->comment('学历ID');
  36. $table->smallInteger('experience')->comment('工作经验ID');
  37. $table->integer('wage')->comment('薪资待遇');
  38. $table->integer('wage_max')->comment('最高薪资');
  39. $table->integer('wage_min')->comment('最低薪资');
  40. $table->tinyInteger('negotiable')->comment('面试:0否;1是');
  41. $table->text('jobs_cotent')->comment('职位描述');
  42. $table->integer('deadline')->comment('到期时间');
  43. $table->integer('refresh_time')->comment('刷新时间');
  44. $table->integer('stime')->comment('置顶时间');
  45. $table->integer('setmeal_deadline')->comment('套餐到期时间');
  46. $table->smallInteger('setmeal_id')->comment('套餐ID');
  47. $table->string('setmeal_name')->comment('套餐名称');
  48. $table->tinyInteger('audit')->comment('审核状态:1审核通过;2审核中;3审核未通过');
  49. $table->tinyInteger('display')->default('1')->comment('是否显示:1是0否');
  50. $table->integer('click')->default('0')->comment('点击量');
  51. $table->tinyInteger('robot')->comment('是否为采集信息:0人工;1采集');
  52. $table->decimal('map_x')->comment('地图X坐标');
  53. $table->decimal('map_y')->comment('地图Y坐标');
  54. $table->tinyInteger('map_zoom')->default('18')->comment('地图缩放级别');
  55. $table->tinyInteger('add_mode')->default('1')->comment('添加方式');
  56. $table->string('department')->comment('部门');
  57. $table->text('key_precise')->comment('精确搜索关键字');
  58. $table->text('key_full')->comment('全文搜索关键字');
  59. $table->smallInteger('subsite_id')->comment('分站ID:0总站');
  60. $table->timestamps();
  61. $table->softDeletes();
  62. });
  63. }
  64. /**
  65. * Reverse the migrations.
  66. *
  67. * @return void
  68. */
  69. public function down()
  70. {
  71. Schema::dropIfExists('jobs');
  72. }
  73. }