integer('real_company_id')->unsigned()->default(0)->comment('RD企业ID'); $table->integer('real_package_id')->unsigned()->default(0)->comment('RD套餐ID'); $table->integer('virtual_company_id')->unsigned()->default(0)->comment('VD企业ID'); $table->integer('virtual_package_id')->unsigned()->default(0)->comment('VD套餐ID'); $table->integer('times')->unsigned()->default(0)->comment('关联次数'); $table->timestamp('updated_at')->comment('更新时间'); $table->primary(['real_company_id', 'real_package_id', 'virtual_company_id', 'virtual_package_id']); $table->comment('RD VD关系关联'); }); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('real_virtual_relations'); } }