Monday, May 22, 2023

How many related columns should you use on a model. Does it matter?

How many related columns should you use on a model. Does it matter?

For example, say in a payroll application I have a model Company. Each Company has multiple model Employee. Each Employee has a Job. Does it matter if the final model, Job has a fk to both the Employee and Company model or should the Job only have a relation to the Employee model?  

What is the school of thought on this and why?

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d3e2c011-584a-45da-9efd-83b1402f6a9bn%40googlegroups.com.

No comments:

Post a Comment