2018_10_17_142647_create_resumes_table.php 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateResumesTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('resumes', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('uid')->index()->comment('会员uid');
  17. $table->tinyInteger('display')->index()->default('1')->comment('是否显示(1:显示 0:不显示)')->nullable();
  18. $table->tinyInteger('display_name')->default('1')->comment('简历名称显示方式(1:公开 0:简历编号3:先生、女士)');
  19. $table->tinyInteger('audit')->index()->default('1')->comment('简历审核(0:审核不通过 1:待审核 2:审核通过)')->nullable();
  20. $table->tinyInteger('stick')->comment('是否置顶(0:否 1:是)')->nullable();
  21. $table->integer('strong_tag')->comment('醒目标签')->nullable();
  22. $table->string('title')->comment('简历标题');
  23. $table->string('fullname')->comment('真实姓名');
  24. $table->tinyInteger('sex')->comment('性别(1:男 2:女)');
  25. $table->string('sex_cn')->comment('性别');
  26. $table->integer('nature')->comment('工作性质id')->nullable();
  27. $table->string('nature_cn')->comment('工作性质')->nullable();
  28. $table->string('trade')->comment('行业id')->nullable();
  29. $table->string('trade_cn')->comment('行业')->nullable();
  30. $table->smallInteger('birthdate')->comment('生日');
  31. $table->string('residence')->comment('现居住地')->nullable();
  32. $table->smallInteger('height')->comment('身高(cm)')->nullable();
  33. $table->tinyInteger('marriage')->default('2')->comment('婚否(1:已婚 2:未婚)')->nullable();
  34. $table->string('marriage_cn')->comment('婚否')->nullable();
  35. $table->integer('experience')->comment('工作经验id');
  36. $table->string('experience_cn')->comment('工作经验');
  37. $table->string('district')->comment('地区ID');
  38. $table->string('district_cn')->comment('地区');
  39. $table->integer('wage')->comment('期望薪资id');
  40. $table->string('wage_cn')->comment('期望薪资');
  41. $table->string('householdaddress')->comment('户口所在地')->nullable();
  42. $table->integer('education')->comment('学历id');
  43. $table->string('education_cn')->comment('学历');
  44. $table->integer('major')->comment('专业id')->nullable();
  45. $table->string('major_cn')->comment('专业')->nullable();
  46. $table->string('tag')->comment('简历标签编号')->nullable();
  47. $table->string('tag_cn')->comment('简历标签')->nullable();
  48. $table->bigInteger('telephone')->index()->comment('手机号码');
  49. $table->string('email')->comment('邮箱');
  50. $table->tinyInteger('email_notify')->comment('邮件接收通知(1:接收 0:不接受)')->nullable();
  51. $table->string('intention_jobs_id')->comment('期望职位id');
  52. $table->string('intention_jobs')->comment('期望职位');
  53. $table->string('specialty')->comment('自我描述')->nullable();
  54. $table->tinyInteger('photo')->comment('是否为照片简历(0:否 1:是)')->nullable();
  55. $table->tinyInteger('photo_audit')->comment('照片审核(0:审核失败,1:待审核 2:审核成功)')->nullable();
  56. $table->string('qq')->comment('QQ')->nullable();
  57. $table->string('weixin')->comment('微信')->nullable();
  58. $table->tinyInteger('subsite_id')->default('0')->comment('站点')->nullable();
  59. $table->integer('stime')->comment('置顶时间')->nullable();
  60. $table->integer('entrust')->comment('简历委托(天)')->nullable();
  61. $table->string('talent')->comment('高级人才(0:否 1:是)')->nullable();
  62. $table->tinyInteger('level')->comment('简历等级(1:优,2:良 0:差)');
  63. $table->integer('complete_percent')->comment('简历完整度');
  64. $table->integer('current')->comment('求职状态编号')->nullable();
  65. $table->string('current_cn')->comment('求职状态')->nullable();
  66. $table->string('word_resume')->comment('word简历')->nullable();
  67. $table->string('word_resume_title')->comment('word简历标题')->nullable();
  68. $table->integer('word_resume_addtime')->comment('word简历添加时间')->nullable();
  69. $table->longText('key_full')->comment('全文搜索关键字')->nullable();
  70. $table->longText('key_precise')->comment('精确搜索关键字')->nullable();
  71. $table->integer('click')->comment('查看次数')->nullable();
  72. $table->string('tpl')->comment('简历模板')->nullable();
  73. $table->tinyInteger('resume_from_pc')->default('1')->comment('简历来自PC(1->是 0->否)')->nullable();
  74. $table->tinyInteger('def')->default('1')->comment('是否为默认简历(1:是 0:否)')->nullable();
  75. $table->tinyInteger('mobile_audit')->comment('手机是否认证(1:是 0:否)')->nullable();
  76. $table->string('comment_content')->comment('简历评论内容')->nullable();
  77. $table->tinyInteger('is_quick')->comment('快速创建简历(0:否 1:是)')->nullable();
  78. $table->string('idcard')->comment('身份证')->nullable();
  79. $table->timestamps();
  80. $table->softDeletes();
  81. });
  82. }
  83. /**
  84. * Reverse the migrations.
  85. *
  86. * @return void
  87. */
  88. public function down()
  89. {
  90. Schema::dropIfExists('resumes');
  91. }
  92. }