Changes between Version 4 and Version 5 of RelationalDesign
- Timestamp:
- 08/26/25 01:41:39 (3 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v4 v5 10 10 11 11 1. Company (**__id__**, **company_name**, description, **registration_number**) 12 12 13 2. Medicine (**__id__**, **medicine_name**, **active_ingredient**) 14 13 15 3. !PaymentMethod (**__id__**, **method_name**) 16 14 17 4. Users (**__id__**, **first_name**, **last_name**, **username**, **hashed_password**, **e_mail**, gender, **date_created**) 18 15 19 5. Admins (**__user_id*(Users)__**) 20 16 21 6. !DeliveryCompany (**__company_id*(Company)__**) 22 17 23 7. Distributor (**__company_id*(Company)__**) 24 18 25 8. Facility (**__id__**, **__company_id*(Company)__**, **facility_name**, **code**) 26 19 27 9. Inventory (**__facility_id*(Facility)__**) 28 20 29 10. Manufacturer (**__company_id*(Company)__**) 30 21 31 11. !MedicineInteraction (**__medicine_id_1*(Medicine)__**, **__medicine_id_2*(Medicine)__**, **type**, description, **severity**) 32 22 33 12. Patient (**__user_id*(Users)__**, **is_verified**) 34 23 35 13. Payment (**__id__**, **__patient_id*(Patient)__**, **__payment_method_id*(!PaymentMethod)__**, **payment_date**, **amount**, **status**) 36 24 37 14. Pharmacist (**__user_id*(Users)__**) 38 25 39 15. Pharmacy (**__company_id*(Company)__**) 40 26 41 16. Prescription (**__id__**, patient_id*(Patient), **__medicine_id*(Medicine)__**, **issued_by**, **issued_at**, **valid_to**, **embg**) 42 27 43 17. !SensitivePatientData (**__id__**, **__patient_id*(Patient)__**, pharmacist_id*(Pharmacist), **embg**, **portrait_photo**) 44 28 45 18. !ShoppingCart (**__id__**, **__patient_id*(Patient)__**) 46 29 47 19. !SupplyOrder (**__id__**, **__distributor_id*(Distributor)__**, **__pharmacy_id*(Pharmacy)__**, **order_date**, **expected_arrival_date**) 48 30 49 20. !BrandedMedicine (**__id__**, **__manufacturer_id*(Manufacturer)__**, **price**, description, **dosage_form**, **strength**, origin_country) 50 31 51 21. !BrandedMedicineImage (**__id__**, **__branded_medicine_id*(!BrandedMedicine)__**, **image**) 52 32 53 22. !ClubCard (**__id__**, **__user_id*(Patient)__**, **club_program**, **points**) 54 33 55 23. !ContactInformation (**__id__**, phone, address, user_id*(User), facility_id*(Facility)) 56 34 57 24. Distributor_BrandedMedicine (**__id__**, **__distributor_id*(Distributor)__**, **__branded_medicine_id*(!BrandedMedicine)__**) 58 35 59 25. !HealthProfile (**__id__**, **__patient_id*(Patient)__**, blood_type) 60 36 61 26. Inventory_BrandedMedicine (**__inventory_id*(Inventory)__**, **__branded_medicine_id*(!BrandedMedicine)__**, **quantity**, **last_changed**) 62 37 63 27. !PatientOrder (**__id__**, **__patient_id*(Patient)__**, **__delivery_company_id*(!DeliveryCompany)__**, **__payment_id*(Payment)__**, **order_date**, **expected_arrival_date**, **status**, **total_price**) 64 38 65 28. PatientOrder_BrandedMedicine (**__id__**, **order_id*(Order)**, **__branded_medicine_id*(!BrandedMedicine)__**, **quantity**) 66 39 67 29. Pharmacy_Catalog (**__pharmacy_id*(Pharmacy)__**, **__branded_medicine_id*(!BrandedMedicine)__**) 68 40 69 30. ShoppingCart_BrandedMedicine (**__shopping_cart_id*(!ShoppingCart)__**, **__branded_medicine_id*(!BrandedMedicine)__**, **quantity**) 41 31. SupplyOrder_BrandedMedicine (**__supply_order_id*(SupplyOrder)__**, **__branded_medicine_id*(!BrandedMedicine)__**, **quantity**) 42 32. AllergicReaction_HealthProfile_Medicine (**__health_profile_id*(HealthProfile)__**, **__medicine_id*(Medicine)__**, date_diagnosed, description, severity) 70 71 31. SupplyOrder_BrandedMedicine (**__supply_order_id*(!SupplyOrder)__**, **__branded_medicine_id*(!BrandedMedicine)__**, **quantity**) 72 73 32. AllergicReaction_HealthProfile_Medicine (**__health_profile_id*(!HealthProfile)__**, **__medicine_id*(Medicine)__**, date_diagnosed, description, severity) 74 43 75 33. Branded_Medicine_InstanceOf_Medicine (**__branded_medicine_id*(!BrandedMedicine)__**, **__medicine_id*(Medicine)__**) 44 76 … … 50 82 51 83 == Релациски Дијаграм == 84 85 [[Image(SynergyMed_relational_dbeaver.png)]]