Релациско Мапирање
Ознаки
- Примарните кличеви се болдирани и подвлечени.
- Надворешните кличеви се означени со * до името на надворешниот клуч и во заградата () е името на ентитетот кој го референцираат
- Задолжителните атрибути се болдирани
Табели
- 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, date_of_birth)
- Admins (user_id*(Users))
- DeliveryCompany (company_id*(Company))
- Distributor (company_id*(Company))
- Facility (id, company_id*(Company), facility_name, code)
- Inventory (id, facility_id*(Facility))
- Manufacturer (company_id*(Company))
- MedicineInteraction (medicine_id_1*(Medicine), medicine_id_2*(Medicine), type, description, severity)
- Client(user_id*(Users), is_verified)
- Payment (id, client_id*(Client), payment_method_id*(PaymentMethod), payment_date, amount, status)
- Pharmacist (user_id*(Users))
- Pharmacy (company_id*(Company))
- Prescription (id, client_id*(Client), medicine_id*(Medicine), issued_by, issued_at, valid_to, embg)
- SensitiveClientData (id, client_id*(Client), pharmacist_id*(Pharmacist), embg, portrait_photo, verification_status)
- ShoppingCart (id, client_id*(Client))
- SupplyOrder (id, distributor_id*(Distributor), pharmacy_id*(Pharmacy), order_date, expected_arrival_date, status)
- BrandedMedicine (id, manufacturer_id*(Manufacturer), name, price, description, dosage_form, strength, origin_country)
- BrandedMedicineImage (id, branded_medicine_id*(BrandedMedicine), image)
- ClubCard (id, user_id*(Client), 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, client_id*(Client), blood_type)
- Inventory_BrandedMedicine (inventory_id*(Inventory), branded_medicine_id*(BrandedMedicine), quantity, last_changed)
- ClientOrder (id, client_id*(Client), delivery_company_id*(DeliveryCompany), payment_id*(Payment), order_date, expected_arrival_date, status, total_price)
- ClientOrder_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 скрипта за полнење на табелите со податоци
Релациски Дијаграм
Last modified
32 hours ago
Last modified on 08/27/25 01:53:02
Attachments (4)
-
SynergyMed_relational_dbeaver.png
(139.4 KB
) - added by 2 days ago.
relatonal_diagram
-
synergymed_ddl.sql
(15.5 KB
) - added by 2 days ago.
synergymed creation script
- synergymed_insert.sql (17.9 KB ) - added by 32 hours ago.
- SynergyMed_relational_dbeaver.2.png (143.2 KB ) - added by 32 hours ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.