2019_01_17_145309_create_jobfairout_table.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateJobfairsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('jobfairout', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('title')->comment('招聘会标题');
  17. $table->string('industry')->comment('行业主题')->nullable();
  18. $table->string('url')->comment('跳转地址')->nullable();
  19. $table->integer('holddate_start')->index()->comment('举办开始时间');
  20. $table->integer('holddate_end')->index()->comment('举办结束时间');
  21. $table->integer('areaid')->comment('举办场地');
  22. $table->tinyInteger('jobfair_type')->comment('招聘会属性(1:现场招聘会,2:赴外招聘,3:高校专场)');
  23. $table->integer('showendtime')->comment('显示截止时间')->nullable();
  24. $table->string('address')->comment('举办地址');
  25. $table->string('bus')->comment('乘车路线');
  26. $table->string('contact')->comment('联系人');
  27. $table->string('phone')->comment('联系电话');
  28. $table->text('predetermined_lock')->comment('预留展位')->nullable();
  29. $table->tinyInteger('display')->comment('显示状态(1:正常,2:暂停)')->nullable();
  30. $table->tinyInteger('is_commonweal')->comment('公益招聘会(1:是,2:否)')->nullable();
  31. $table->integer('predetermined_point')->comment('预定消耗积分')->nullable();
  32. $table->integer('jobsfair_num')->comment('预定消耗场次')->nullable();
  33. $table->integer('nosign_point')->comment('未签到扣减积分')->nullable();
  34. $table->integer('late_point')->comment('迟到早退扣减积分')->nullable();
  35. $table->integer('ordid')->comment('排序')->nullable();
  36. $table->text('jobfair_introduction')->comment('招聘会简介');
  37. $table->string('map_x')->comment('地图坐标');
  38. $table->string('map_y')->comment('地图坐标');
  39. $table->integer('subsite_id')->comment('站点')->nullable();
  40. $table->string('predetermined_status')->comment('预定状态(1:允许预订,2:停止预订)')->nullable();
  41. $table->integer('predetermined_start')->comment('预订开始时间');
  42. $table->integer('predetermined_end')->comment('预订结束时间');
  43. $table->tinyInteger('more_stand')->comment('预定多个展位(1:可以,0:不可以)')->nullable();
  44. $table->timestamps();
  45. $table->softDeletes();
  46. });
  47. }
  48. /**
  49. * Reverse the migrations.
  50. *
  51. * @return void
  52. */
  53. public function down()
  54. {
  55. Schema::dropIfExists('jobfairs');
  56. }
  57. }