Changes between Version 12 and Version 13 of Normalization


Ignore:
Timestamp:
09/13/25 17:21:49 (6 days ago)
Author:
222003
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v12 v13  
    127127== Декомпозиција во 2НФ ==
    128128За да ги отстраниме парцијалните зависиности ги делиме атрибутите во релации каде не-клучните атрибути целосно зависат од нивниот клуч:
    129 company_id → company_name, company_description, registration_number \\
    130 medicine_id → medicine_name, medicine_active_ingredient \\
    131 payment_method_id → payment_method_name \\
    132 user_id → first_name, last_name, username, hashed_password, e_mail, gender, date_created, date_of_birth, is_account_non_expired, is_account_non_locked, is_credentials_non_expired, is_enabled, is_verified (Client) \\
    133 facility_id → company_id, facility_name, facility_code \\
    134 inventory_id → facility_id \\
    135 branded_medicine_id → company_id (улога: manufacturer), branded_name, branded_price, branded_description, dosage_form, strength, origin_country \\
    136 branded_medicine_image_id → branded_medicine_id, branded_image, is_main_image \\
    137 clubcard_id → user_id, club_program, points \\
    138 contactinformation_id → phone, contact_address, contact_user_id, contact_facility_id \\
    139 healthprofile_id → user_id (улога: client), blood_type \\
    140 inventory_id, branded_medicine_id → quantity, last_changed \\
    141 client_order_id → user_id (улога: client), company_id (улога: delivery), payment_id, client_order_date, client_expected_arrival_date, client_order_status, total_price
    142 client_order_id, branded_medicine_id → order_quantity \\
    143 shopping_cart_id → user_id (улога: client) \\
    144 shopping_cart_id, branded_medicine_id → cart_quantity
    145 supply_order_id → company_id (улога: distributor), company_id (улога: pharmacy), supply_order_date, supply_expected_arrival_date, supply_status, facility_id \\
    146 supply_order_id, branded_medicine_id → supply_quantity \\
    147 payment_id → user_id (улога: client), payment_method_id, payment_date, payment_amount, payment_status \\
    148 prescription_id → user_id (улога: client), medicine_id, issued_by, issued_at, valid_to, prescription_embg \\
    149 sensitiveclientdata_id → user_id (улога: client), user_id (улога: pharmacist), sensitive_embg, portrait_photo, verification_status \\
    150 medicine_id_1, medicine_id_2 → mi_type, mi_description, mi_severity \\
    151 healthprofile_id, medicine_id → date_diagnosed, allergic_description, allergic_severity \\
    152 branded_medicine_id, medicine_id → / \\
    153 company_id (улога: distributor), branded_medicine_id → / \\
    154 company_id (улога: pharmacy), branded_medicine_id → / \\
     129**company_id** → company_name, company_description, registration_number \\
     130**medicine_id** → medicine_name, medicine_active_ingredient \\
     131**payment_method_id** → payment_method_name \\
     132**user_id** → first_name, last_name, username, hashed_password, e_mail, gender, date_created, date_of_birth, is_account_non_expired, is_account_non_locked, is_credentials_non_expired, is_enabled, is_verified \\
     133**facility_id** → company_id, facility_name, facility_code \\
     134**inventory_id** → facility_id \\
     135**branded_medicine_id** → company_id, branded_name, branded_price, branded_description, dosage_form, strength, origin_country \\
     136**branded_medicine_image_id** → branded_medicine_id, branded_image, is_main_image \\
     137**clubcard_id** → user_id, club_program, points \\
     138**contactinformation_id** → phone, contact_address, contact_user_id, contact_facility_id \\
     139**healthprofile_id** → user_id, blood_type \\
     140**inventory_id, branded_medicine_id** → quantity, last_changed \\
     141**client_order_id** → user_id, company_id, payment_id, client_order_date, client_expected_arrival_date, client_order_status, total_price
     142**client_order_id, branded_medicine_id** → order_quantity \\
     143**shopping_cart_id** → user_id \\
     144**shopping_cart_id, branded_medicine_id** → cart_quantity
     145**supply_order_id** → company_id, company_id, supply_order_date, supply_expected_arrival_date, supply_status, facility_id \\
     146**supply_order_id, branded_medicine_id** → supply_quantity \\
     147**payment_id** → user_id, payment_method_id, payment_date, payment_amount, payment_status \\
     148**prescription_id** → user_id, medicine_id, issued_by, issued_at, valid_to, prescription_embg \\
     149**sensitiveclientdata_id** → user_id, user_id, sensitive_embg, portrait_photo, verification_status \\
     150**medicine_id_1, medicine_id_2** → mi_type, mi_description, mi_severity \\
     151**healthprofile_id, medicine_id** → date_diagnosed, allergic_description, allergic_severity \\
     152**branded_medicine_id, medicine_id** → / \\
     153**company_id, branded_medicine_id** → / \\
     154**company_id, branded_medicine_id** → / \\
    155155
    156156Со ваква декомпозиција ги извлекуваме следните релации: