欢迎并赞赏任何建议。
尝试构建一个 Flutter 应用程序来管理多个诊所、患者及其预约。
该应用程序具有以下实体和依赖项:
注意:数据库应针对商业用途进行最小读/写优化。
Users (collection)
- user1_id (document)
name,
email,
clinicReference(id),
- user2_id ....
- user3_id ....
Clinics (collection)
- clinic1_id (document)
Users_allowed_access (array)
- user3_id
- user4_id
Patients (collection)
- patient1_id (document)
name,
date_of_birth,
phoneNumber,
Appointments_of_patient1 (collection)
- appointment1_id (doc)
dateTime,
medicalInfo (map),
- appointment2_id
- patient2_id (document) ....
- patient3_id (document) ....
Appointments (collection)
// I'm not sure if this should exist //
// Or how it should be organized //
- clinic2_id ....
- clinic3_id ....
提前致谢。
缺少示例和解释。指出一些免费资源将不胜感激。