2018_10_12_130855_create_members_setmeals_table.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateMembersSetmealsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('members_setmeals', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('expire')->default('0')->comment('套餐是否到期 1:到期 0:没到期');
  17. $table->integer('uid')->comment('会员uid');
  18. $table->tinyInteger('utype')->default('1')->comment('会员类型1、企业、2个人');
  19. $table->integer('setmeal_id')->comment('套餐id');
  20. $table->string('setmeal_name')->comment('套餐名称');
  21. $table->integer('days')->comment('套餐时长');
  22. $table->integer('expense')->comment('套餐价格');
  23. $table->integer('jobs_meanwhile')->comment('可发布职位数');
  24. $table->integer('refresh_jobs_free')->comment('每天免费刷新职位数');
  25. $table->integer('download_resume')->comment('简历下载数');
  26. $table->integer('download_resume_max')->comment('每天可下载简历最大数');
  27. $table->integer('jobfair_num')->comment('招聘会场次');
  28. $table->string('added')->comment('附赠说明');
  29. $table->integer('starttime')->comment('开始时间');
  30. $table->integer('endtime')->comment('结束时间');
  31. $table->string('setmeal_img')->comment('套餐图标');
  32. $table->tinyInteger('show_apply_contact')->default('1')->comment('收到的简历是否免费查看 0:不免费 1:免费');
  33. $table->tinyInteger('is_free')->default('1')->comment('是否免费会员 0:不免费 1:免费');
  34. $table->double('discount_download_resume')->comment('简历包折扣');
  35. $table->double('discount_sms')->comment('短信包折扣');
  36. $table->double('discount_jobs')->comment('职位包折扣');
  37. $table->double('discount_jobfair')->comment('招聘会包折扣');
  38. $table->double('discount_stick')->comment('职位置顶折扣');
  39. $table->double('discount_emergency')->comment('职位紧急折扣');
  40. $table->double('discount_tpl')->comment('企业模板折扣');
  41. $table->double('discount_auto_refresh_jobs')->comment('职位预约刷新折扣');
  42. $table->tinyInteger('show_contact_direct')->default('1')->comment('显示联系方式 1:显示 0:不显示');
  43. $table->timestamps();
  44. $table->softDeletes();
  45. });
  46. }
  47. /**
  48. * Reverse the migrations.
  49. *
  50. * @return void
  51. */
  52. public function down()
  53. {
  54. Schema::dropIfExists('members_setmeals');
  55. }
  56. }