2018_10_11_150800_create_setmeals_table.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateSetmealsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('setmeals', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('display')->default('1')->comment('是否显示(1:显示 0:不显示)');
  17. $table->tinyInteger('apply')->default('1')->comment('是否显示(1:[月度会员,季度会员,年度会员] 0:免费会员)');
  18. $table->string('setmeal_name')->comment('套餐名称');
  19. $table->integer('days')->comment('套餐天数');
  20. $table->integer('expense')->comment('价格');
  21. $table->integer('jobs_meanwhile')->comment('套餐可发布职位数');
  22. $table->integer('refresh_jobs_free')->comment('免费刷新职位数');
  23. $table->integer('download_resume')->comment('下载简历数');
  24. $table->integer('download_resume_max')->comment('下载简历最大数');
  25. $table->integer('jobfair_num')->comment('招聘会场次');
  26. $table->string('added')->comment('其他说明');
  27. $table->integer('show_order')->comment('显示顺序');
  28. $table->integer('set_sms')->comment('赠送短信条数');
  29. $table->integer('set_points')->comment('赠送积分');
  30. $table->string('setmeal_img')->comment('套餐图片');
  31. $table->tinyInteger('show_apply_contact')->default('1')->comment('收到的简历是否可以直接查看联系方式(1:是 0:否)');
  32. $table->tinyInteger('show_contact_direct')->default('1')->comment('显示联系方式 1:显示 0:不显示');
  33. $table->tinyInteger('is_free')->default('1')->comment('是否免费(1:是 0;否)');
  34. $table->double('discount_download_resume')->comment('简历增值包折扣');
  35. $table->double('discount_sms')->comment('短信增值包折扣');
  36. $table->double('discount_stick')->comment('职位置顶增值包折扣');
  37. $table->double('discount_emergency')->comment('职位紧急增值包折扣');
  38. $table->double('discount_tpl')->comment('企业模板增值包折扣');
  39. $table->double('discount_auto_refresh_jobs')->comment('职位预约刷新折扣');
  40. $table->timestamps();
  41. $table->softDeletes();
  42. });
  43. }
  44. /**
  45. * Reverse the migrations.
  46. *
  47. * @return void
  48. */
  49. public function down()
  50. {
  51. Schema::dropIfExists('setmeals');
  52. }
  53. }