1👍
Here are two common approaches data modeling for this. Pick whichever one better fits your business domain.
Clinic
contains aForeignKey
toClinic
representing the parent-child relationship. Because many different sub-Clinic
s can have the same super-Clinic
, the sub-Clinic
should contain theForeignKey
and it should be named something along the lines ofparent_clinic
.- Introduce another model along the lines of
ClinicGroup
and relateClinic
to them. That is,Clinic
contains aForeignKey
toClinicGroup
named something along the lines ofclinic_group
.
👤Ming
Source:stackexchange.com