2018_09_27_033453_create_companys_table.php 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateCompanysTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('companys', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('utype')->default('0')->comment('标志为企业会员')->nullable();
  17. $table->tinyInteger('email_audit')->default('0')->comment('邮箱认证 1:认证通过 2:认证失败0未认证');
  18. $table->tinyInteger('mobile_audit')->default('0')->comment('手机认证 1:认证通过 2:认证失败0未认证');
  19. $table->integer('reg_time')->default('0')->comment('注册时间');
  20. $table->integer('reg_ip')->default('0')->comment('注册IP');
  21. $table->string('reg_address')->default('')->comment('注册地址');
  22. $table->integer('last_login_time')->default('0')->comment('上次登录时间');
  23. $table->integer('last_login_ip')->default('0')->comment('上次登录IP');
  24. $table->integer('remind_email_time')->default('0')->comment('下次邮件提醒时间');
  25. $table->tinyInteger('reg_type')->default('1')->comment('注册方式(1:手机,2:邮箱,3:微信)');
  26. $table->tinyInteger('reg_source')->default('1')->comment('注册来源 1:网页端 2:手机端 3:微信小程序');
  27. $table->string('reg_source_cn')->default('网页端')->comment("注册来源 1:网页端 2:手机端 3:微信小程序");
  28. $table->integer('remind_email_ex_time')->default('1')->comment('已经邮件提醒次数');
  29. $table->string('tpl')->default('default')->comment('企业模版');
  30. $table->string('companyname')->unique()->comment('企业名称');
  31. $table->string('password')->comment('企业用户密码');
  32. $table->string('old_password')->comment('企业用户旧密码');
  33. $table->smallInteger('nature')->comment('企业性质编号');
  34. $table->string('nature_cn')->comment('企业性质');
  35. $table->smallInteger('trade')->comment('企业行业编号');
  36. $table->string('trade_cn')->comment('企业行业');
  37. $table->string('district')->comment('所在地区大类');
  38. $table->string('district_cn')->comment('所在地区小类');
  39. $table->smallInteger('scale')->comment('企业规模ID');
  40. $table->string('scale_cn')->comment('企业规模');
  41. $table->integer('registered')->comment('注册资金');
  42. $table->string('currency')->comment('资金类型万人民币/万美元');
  43. $table->string('address')->comment('企业地址');
  44. $table->string('contact')->comment('联系人');
  45. $table->bigInteger('mobile')->comment('联系电话');
  46. $table->string('landline_tel')->comment('座机');
  47. $table->string('email')->comment('邮箱');
  48. $table->string('website')->comment('企业网址');
  49. $table->string('certificate_img')->comment('营业执照');
  50. $table->string('logo')->comment('企业logo');
  51. $table->string('organization_code')->comment('组织机构代码');
  52. $table->text('contents')->comment('企业介绍');
  53. $table->smallInteger('setmeal_id')->comment('套餐ID');
  54. $table->string('setmeal_name')->comment('套餐名称');
  55. $table->tinyInteger('audit')->default('2')->comment('审核状态:1审核通过,2待审核,3审核未通过');
  56. $table->tinyInteger('certificate_img_audit')->default('0')->comment('营业执照认证状态:0未认证;1审核通过,2待审核,3审核未通过');
  57. $table->smallInteger('subsite_id')->comment('分站ID');
  58. $table->tinyInteger('map_open')->comment('电子地图');
  59. $table->decimal('map_x')->default('0.000000')->comment('X坐标');
  60. $table->decimal('map_y')->default('0.000000')->comment('Y坐标');
  61. $table->tinyInteger('map_zoom')->comment('地图放大级别');
  62. $table->integer('refresh_time')->comment('刷新时间');
  63. $table->integer('click')->default('1')->comment('点击量');
  64. $table->tinyInteger('user_status')->default('1')->comment('用户身份');
  65. $table->tinyInteger('contact_show')->default('1')->comment('是否显示联系人:1是0否');
  66. $table->tinyInteger('telephone_show')->default('1')->comment('是否显示联系电话:1是0否');
  67. $table->tinyInteger('email_show')->default('1')->comment('是否显示email:1是0否');
  68. $table->tinyInteger('landline_tel_show')->default('1')->comment('是否显示座机:1是0否');
  69. $table->tinyInteger('robot')->comment('是否为采集信息:0人工1采集');
  70. $table->integer('comment')->comment('评论数');
  71. $table->tinyInteger('resume_processing')->default('100')->comment('简历处理率');
  72. $table->string('tag')->comment('标签');
  73. $table->tinyInteger('wzp_tpl')->comment('微信招聘模板:0否1是');
  74. $table->integer('praise')->comment('点赞');
  75. $table->integer('jobs')->comment('职位');
  76. $table->integer('replys')->comment('回复');
  77. $table->integer('sms_num')->comment('短信数');
  78. $table->string('qq')->comment('qq');
  79. $table->string('short_name')->comment('企业简称');
  80. $table->rememberToken();
  81. $table->timestamps();
  82. $table->softDeletes();
  83. });
  84. }
  85. /**
  86. * Reverse the migrations.
  87. *
  88. * @return void
  89. */
  90. public function down()
  91. {
  92. Schema::dropIfExists('companys');
  93. }
  94. }