Make improvements and corrections of anomalies on an existing system in the field of health Important to know
In this context, Clinics are users. Ideally, like I explained, Users should be separated from Clinics as it is inevitable that Clinics will need multiple users. This was a bad assumption by the creators of this project. To achieve your desired result, you need to separate all Users fields to a separate entity (separate db table). You need to write a migration which will create all users based on the existing Clinics and then setup a one to many relationship