| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- class CreateCompanyContactsTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('company_contacts', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->integer('company_id')->index()->comment('企业ID');
 
-             $table->string('contact')->comment('联系人');
 
-             $table->bigInteger('telephone')->comment('手机号')->nullable();
 
-             $table->string('landline_tel')->comment('固话');
 
-             $table->string('email')->comment('邮箱');
 
-             $table->string('qq')->comment('QQ')->nullable();
 
-             $table->string('address')->comment('联系地址');
 
-             $table->timestamps();
 
-             $table->softDeletes();
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('company_contacts');
 
-     }
 
- }
 
 
  |