What is the most ideal way to create a column of type array, Should I use the JSON datatype or table relationships?
And if I want to make a like system, would it be like:
$table->json("likes")->default("[]");
and have that JSON array have the IDs of the users who liked, and the length of that array be the like count.
Or make a separate table called likes that is like:
$table->bigInteger("post_id")->unsigned();
$table->bigInteger("user_id")->unsigned();