increments('id'); $table->integer('user_id')->comment('用户ID'); $table->integer('coupon_id')->comment('优惠券ID'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_coupon'); } }