123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateJobsContactsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('jobs_contacts', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('job_id')->comment('职位id');
- $table->string('contact')->comment('联系人');
- $table->string('qq')->comment('QQ');
- $table->bigInteger('telephone')->comment('手机');
- $table->tinyInteger('notify')->comment('收到简历邮件通知');
- $table->string('landline_tel')->comment('固定电话');
- $table->string('email')->comment('电子邮件');
- $table->string('address')->comment('地址');
- $table->tinyInteger('notify_mobile')->comment('收到简历短信通知');
- $table->tinyInteger('contact_show')->comment('联系人显示(1显示,0不显示)');
- $table->tinyInteger('telephone_show')->comment('手机显示(1显示,0不显示)');
- $table->tinyInteger('email_show')->comment('email显示(1显示,0不显示)');
- $table->tinyInteger('landline_tel_show')->comment('固定电话显示(1显示,0不显示)');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('jobs_contacts');
- }
- }
|