bestmomo's avatar

bestmomo wrote a reply+100 XP

5mos ago

Using the unsignedBigInteger type is only about the column's ability to store the data, while using a foreign key constraint is about ensuring the data is correct and related. I think it's always better to use the foreign key constraint.