Version 8 (modified by 3 days ago) ( diff ) | ,
---|
Релациско Мапирање
Ознаки
- Примарните кличеви се болдирани и подвлечени.
- Надворешните кличеви се означени со * до името на надворешниот клуч и во заградата () е името на ентитетот кој го референцираат
- Задолжителните атрибути се болдирани
Табели
- Company (id, company_name, description, registration_number)
- Medicine (id, medicine_name, active_ingredient)
- PaymentMethod (id, method_name)
- Users (id, first_name, last_name, username, hashed_password, e_mail, gender, date_created)
- Admins (user_id*(Users))
- DeliveryCompany (company_id*(Company))
- Distributor (company_id*(Company))
- Facility (id, company_id*(Company), facility_name, code)
- Inventory (facility_id*(Facility))
- Manufacturer (company_id*(Company))
- MedicineInteraction (medicine_id_1*(Medicine), medicine_id_2*(Medicine), type, description, severity)
- Patient (user_id*(Users), is_verified)
- Payment (id, patient_id*(Patient), payment_method_id*(PaymentMethod), payment_date, amount, status)
- Pharmacist (user_id*(Users))
- Pharmacy (company_id*(Company))
- Prescription (id, patient_id*(Patient), medicine_id*(Medicine), issued_by, issued_at, valid_to, embg)
- SensitivePatientData (id, patient_id*(Patient), pharmacist_id*(Pharmacist), embg, portrait_photo)
- ShoppingCart (id, patient_id*(Patient))
- SupplyOrder (id, distributor_id*(Distributor), pharmacy_id*(Pharmacy), order_date, expected_arrival_date)
- BrandedMedicine (id, manufacturer_id*(Manufacturer), price, description, dosage_form, strength, origin_country)
- BrandedMedicineImage (id, branded_medicine_id*(BrandedMedicine), image)
- ClubCard (id, user_id*(Patient), club_program, points)
- ContactInformation (id, phone, address, user_id*(User), facility_id*(Facility))
- Distributor_BrandedMedicine (id, distributor_id*(Distributor), branded_medicine_id*(BrandedMedicine))
- HealthProfile (id, patient_id*(Patient), blood_type)
- Inventory_BrandedMedicine (inventory_id*(Inventory), branded_medicine_id*(BrandedMedicine), quantity, last_changed)
- PatientOrder (id, patient_id*(Patient), delivery_company_id*(DeliveryCompany), payment_id*(Payment), order_date, expected_arrival_date, status, total_price)
- PatientOrder_BrandedMedicine (id, order_id*(Order), branded_medicine_id*(BrandedMedicine), quantity)
- Pharmacy_Catalog (pharmacy_id*(Pharmacy), branded_medicine_id*(BrandedMedicine))
- ShoppingCart_BrandedMedicine (shopping_cart_id*(ShoppingCart), branded_medicine_id*(BrandedMedicine), quantity)
- SupplyOrder_BrandedMedicine (supply_order_id*(SupplyOrder), branded_medicine_id*(BrandedMedicine), quantity)
- AllergicReaction_HealthProfile_Medicine (health_profile_id*(HealthProfile), medicine_id*(Medicine), date_diagnosed, description, severity)
- Branded_Medicine_InstanceOf_Medicine (branded_medicine_id*(BrandedMedicine), medicine_id*(Medicine))
DDL скрипта за бришење и креирање на табелите
DDL скрипта за полнење на табелите со податоци
Релациски Дијаграм
Attachments (4)
-
SynergyMed_relational_dbeaver.png
(139.4 KB
) - added by 3 days ago.
relatonal_diagram
-
synergymed_ddl.sql
(15.5 KB
) - added by 3 days ago.
synergymed creation script
- synergymed_insert.sql (17.9 KB ) - added by 39 hours ago.
- SynergyMed_relational_dbeaver.2.png (143.2 KB ) - added by 39 hours ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.