Changes between Version 2 and Version 3 of RelationalDesign
- Timestamp:
- 12/17/25 14:37:58 (11 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v2 v3 9 9 == Tables == 10 10 11 1. '''Users''' ('''** id**''', '''username''', '''password''', '''email''')11 1. '''Users''' ('''**__id__**''', '''username''', '''password''', '''email''') 12 12 13 2. '''Admins''' ('''** user_id**'''* (Users))13 2. '''Admins''' ('''**__user_id__**'''* (Users)) 14 14 15 3. '''Components''' ('''** id**''', '''name''', '''brand''', '''price''', img_url)15 3. '''Components''' ('''**__id__**''', '''name''', '''brand''', '''price''', img_url) 16 16 17 4. '''CPU''' ('''** component_id**'''* (Components), '''socket''', '''cores''', '''threads''', '''base_clock''', boost_clock, '''tdp''')17 4. '''CPU''' ('''**__component_id__**'''* (Components), '''socket''', '''cores''', '''threads''', '''base_clock''', boost_clock, '''tdp''') 18 18 19 19 5. '''GPU''' ('''**component_id**'''* (Components), '''vram''', '''tdp''', base_clock, boost_clock, '''chipset''', '''length''') 20 20 21 6. '''Memory''' ('''** component_id**'''* (Components), '''type''', '''speed''', '''capacity''', '''modules''')21 6. '''Memory''' ('''**__component_id__**'''* (Components), '''type''', '''speed''', '''capacity''', '''modules''') 22 22 23 7. '''Storage''' ('''** component_id**'''* (Components), '''type''', '''capacity''', '''form_factor''')23 7. '''Storage''' ('''**__component_id__**'''* (Components), '''type''', '''capacity''', '''form_factor''') 24 24 25 8. '''Power_Supply''' ('''** component_id**'''* (Components), '''type''', '''wattage''', '''form_factor''')25 8. '''Power_Supply''' ('''**__component_id__**'''* (Components), '''type''', '''wattage''', '''form_factor''') 26 26 27 9. '''Motherboard''' ('''** component_id**'''* (Components), '''socket''', '''chipset''', '''form_factor''', '''ram_type''', '''num_ram_slots''', '''max_ram_capacity''')27 9. '''Motherboard''' ('''**__component_id__**'''* (Components), '''socket''', '''chipset''', '''form_factor''', '''ram_type''', '''num_ram_slots''', '''max_ram_capacity''') 28 28 29 10. '''PC_Case''' ('''** component_id**'''* (Components), '''cooler_max_height''', '''gpu_max_length''')29 10. '''PC_Case''' ('''**__component_id__**'''* (Components), '''cooler_max_height''', '''gpu_max_length''') 30 30 31 11. '''Case_Storage_Form_Factors''' ('''** case_id**''', '''**form_factor**''')31 11. '''Case_Storage_Form_Factors''' ('''**__case_id__**''', '''**__form_factor__**''') 32 32 33 12. '''Case_PS_Form_Factors''' ('''** case_id**''', '''**form_factor**''')33 12. '''Case_PS_Form_Factors''' ('''**__case_id__**''', '''**__form_factor__**''') 34 34 35 13. '''Case_Mobo_Form_Factors''' ('''** case_id**''', '''**form_factor**''')35 13. '''Case_Mobo_Form_Factors''' ('''**__case_id__**''', '''**__form_factor__**''') 36 36 37 14. '''Cooler''' ('''** component_id**'''* (Components), '''type''', '''height''', '''max_tdp_supported''')37 14. '''Cooler''' ('''**__component_id__**'''* (Components), '''type''', '''height''', '''max_tdp_supported''') 38 38 39 15. '''Cooler_CPU_Sockets''' ('''** cooler_id**''', '''**socket**''')39 15. '''Cooler_CPU_Sockets''' ('''**__cooler_id__**''', '''**__socket__**''') 40 40 41 16. '''Memory_Card''' ('''** component_id**'''* (Components), '''num_slots''', '''interface''')41 16. '''Memory_Card''' ('''**__component_id__**'''* (Components), '''num_slots''', '''interface''') 42 42 43 17. '''Optical_Drive''' ('''** component_id**'''* (Components), '''form_factor''', '''type''', '''interface''', '''write_speed''', '''read_speed''')43 17. '''Optical_Drive''' ('''**__component_id__**'''* (Components), '''form_factor''', '''type''', '''interface''', '''write_speed''', '''read_speed''') 44 44 45 18. '''Sound_Card''' ('''** component_id**'''* (Components), '''sample_rate''', '''bit_depth''', '''chipset''', '''interface''')45 18. '''Sound_Card''' ('''**__component_id__**'''* (Components), '''sample_rate''', '''bit_depth''', '''chipset''', '''interface''') 46 46 47 19. '''Sound_Card_Channels''' ('''** sound_card_id**''', '''**channel**''')47 19. '''Sound_Card_Channels''' ('''**__sound_card_id__**''', '''**__channel__**''') 48 48 49 20. '''Cables''' ('''** component_id**'''* (Components), '''length_cm''', '''type''')49 20. '''Cables''' ('''**__component_id__**'''* (Components), '''length_cm''', '''type''') 50 50 51 21. '''Network_Adapter''' ('''** component_id**'''* (Components), '''wifi_version''', '''interface''', '''num_antennas''')51 21. '''Network_Adapter''' ('''**__component_id__**'''* (Components), '''wifi_version''', '''interface''', '''num_antennas''') 52 52 53 22. '''Network_Card''' ('''** component_id**'''* (Components), '''num_ports''', '''speed''', '''interface''')53 22. '''Network_Card''' ('''**__component_id__**'''* (Components), '''num_ports''', '''speed''', '''interface''') 54 54 55 23. '''Build''' ('''** id**''', '''user_id'''* (Users), '''name''', '''created_at''', description, '''total_price''', '''is_approved''')55 23. '''Build''' ('''**__id__**''', '''user_id'''* (Users), '''name''', '''created_at''', description, '''total_price''', '''is_approved''') 56 56 57 24. '''Build_Component''' ('''** build_id**''', '''**component_id**''')57 24. '''Build_Component''' ('''**__build_id__**''', '''**__component_id__**''') 58 58 59 25. '''Favorite_Build''' ('''** build_id**''', '''**user_id**''')59 25. '''Favorite_Build''' ('''**__build_id__**''', '''**__user_id__**''') 60 60 61 26. '''Rating_Build''' ('''** build_id**''', '''**user_id**''', '''value''')61 26. '''Rating_Build''' ('''**__build_id__**''', '''**__user_id__**''', '''value''') 62 62 63 27. '''Review''' ('''** id**''', '''build_id'''* (Build), '''user_id'''* (Users), '''content''', '''created_at''')63 27. '''Review''' ('''**__id__**''', '''build_id'''* (Build), '''user_id'''* (Users), '''content''', '''created_at''') 64 64 65 28. '''Suggestions''' ('''** id**''', '''user_id'''* (Users), admin_id* (Admins), '''link''', admin_comment, description, '''status''', '''component_type''')65 28. '''Suggestions''' ('''**__id__**''', '''user_id'''* (Users), admin_id* (Admins), '''link''', admin_comment, description, '''status''', '''component_type''') 66 66 67 67 == DDL script for creating the database schema ==
