Hello Roelof,
Could you please tell the attributes that you need for customers and attributes that need to have volunteers?
Pedro
Hello Roelof,
If you don't want to duplicate info then you should have 3 tables:
persons table:
volunteers table:
customers table:
This is the common solution normalizing
Best Regards, Pedro
Personally if you're new to this, I'd steer away from all those tables and simply have a couple of flags in the users table like "is_volunteer" and "is_customer" or even better assign roles to users - but that might be going too far with your current understanding.
That way if a volunteer ever becomes a customer, or vice versa, you just set the relevant flags.
As Pedro says though, normalization is the accepted practice and I'd certainly look at creating a separate "address" table, not sure I'd go so far as separate users tables though.
Thanks everybody,
That is also a problem I have to adress. Take care that roles are executed. But first things, first, making that volunteers can log in.
Roelof
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community