📅  最后修改于: 2022-03-11 14:58:54.689000             🧑  作者: Mango
$table->bigInteger('user_id')->unsigned()->index();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');