Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bestmomo's avatar

bestmomo wrote a reply+100 XP

5mos ago

Foreign keys

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.