engine = 'InnoDB'; $table->increments('id'); $table->unsignedInteger('user_id'); $table->string('name')->comment('收货人名字'); $table->string('phone')->comment('收货人手机号码'); $table->string('province_id')->nullable()->comment('省份'); $table->string('city_id')->nullable()->comment('城市'); $table->string('detail_address')->comment('详细的收货地址'); $table->tinyInteger('is_default')->default(0)->comment('是否是默认收货地址'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('addresses'); } }