📅  最后修改于: 2022-03-11 15:01:21.991000             🧑  作者: Mango
//Assuming you might be using mysql, you need to specify that the UserId is .unsigned()
table.integer('UserId',11).unsigned().inTable('User').references('UserId');