Support the ongoing development of Laravel.io →
Database Eloquent Architecture
Last updated 1 year ago.
0

I'm sorry, I can't edit my post (won't save). Here are two links which show my structure explained above:

Last updated 1 year ago.
0

In 95% of cases in SQL DBs it's good to introduce an artificial "id" (integer sequence) primary key even if some subset of your fields is unique. It's far better for data handling - as you probably noticed ;).
You have mentioned your "laziness" - I'd say - refactor the data structure, because your problems may only stack up in the future.

Last updated 1 year ago.
0

Thanks for the tip!

szegad said:

You have mentioned your "laziness" - I'd say - refactor the data structure, because your problems may only stack up in the future.

Yeah, I plan to do that. But I think I need some more learning. As I said, I struggle with creating a useful and logic structur for my purpose

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

LukasMa lukasma Joined 26 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.