Hello,
I’m trying to wrap my head around how to design my Realm database.
To illustrate my lack of understanding, let’s say we are trying to build a doctor/patient application.
The doctor has access to:
- (His) Doctor Information
- Patient Information
- Appointments
Patient has access to:
- Doctor Information
- (His) Patient Information
- (His) Appointments
How would I design that? I can create a user Realm for each doctor that includes all his appointments, his info, and his patients information. But what about the Patient? How do I give them access to only their appointment? How do I let them request appointments for example?
I’m hoping somebody can steer me in the right direction.
Thank you.