2018_11_14_165021_create_jobs_contacts_table.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateJobsContactsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('jobs_contacts', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('job_id')->comment('职位id');
  17. $table->string('contact')->comment('联系人');
  18. $table->string('qq')->comment('QQ');
  19. $table->bigInteger('telephone')->comment('手机');
  20. $table->tinyInteger('notify')->comment('收到简历邮件通知');
  21. $table->string('landline_tel')->comment('固定电话');
  22. $table->string('email')->comment('电子邮件');
  23. $table->string('address')->comment('地址');
  24. $table->tinyInteger('notify_mobile')->comment('收到简历短信通知');
  25. $table->tinyInteger('contact_show')->comment('联系人显示(1显示,0不显示)');
  26. $table->tinyInteger('telephone_show')->comment('手机显示(1显示,0不显示)');
  27. $table->tinyInteger('email_show')->comment('email显示(1显示,0不显示)');
  28. $table->tinyInteger('landline_tel_show')->comment('固定电话显示(1显示,0不显示)');
  29. $table->timestamps();
  30. $table->softDeletes();
  31. });
  32. }
  33. /**
  34. * Reverse the migrations.
  35. *
  36. * @return void
  37. */
  38. public function down()
  39. {
  40. Schema::dropIfExists('jobs_contacts');
  41. }
  42. }