Changes between Version 6 and Version 7 of RelationalDesign


Ignore:
Timestamp:
09/15/26 01:45:59 (13 days ago)
Author:
236024
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v6 v7  
    11= Relational Design =
    22
    3 This page documents the relational design for BEST Skopje Hub, based on ERModel_v11. The design uses partial transformation from the ER model into a PostgreSQL relational schema. Strong entities are mapped directly to relations, weak entities include the primary keys of their owner entities, specializations are mapped with one relation for the supertype and one relation for each subtype, and M:N relationships are mapped as separate relations.
     3This page documents the relational design for BEST Skopje Hub, based on ERModel_v12. The design uses partial transformation from the ER model into a PostgreSQL relational schema. Strong entities are mapped directly to relations, weak entities include the primary keys of their owner entities, specializations are mapped with one relation for the supertype and one relation for each subtype, and M:N relationships are mapped as separate relations.
    44
    55== Descriptive representation of the relational schema ==
    … …  
    4949)
    5050
    51 has_stage(
    52     student_index, ms_id, valid_from, valid_to,
    53     PK(student_index, ms_id, valid_from),
     51membership_stage_records(
     52    msr_id, student_index, ms_id, valid_from, valid_to,
     53    PK(msr_id),
    5454    FK(student_index) -> members(student_index),
    5555    FK(ms_id) -> membership_stages(ms_id)
    … …  
    7575
    7676function_mandates(
    77     student_index, of_id, mandate_year,
    78     PK(student_index, of_id, mandate_year),
     77    fm_id, student_index, of_id, mandate_year,
     78    PK(fm_id),
    7979    FK(student_index) -> full_members(student_index),
    8080    FK(of_id) -> organizational_functions(of_id)
    … …  
    222222The specialization of students into members and then into observers, young members, full members, and alumni is represented through subtype tables whose primary keys are also foreign keys. `young_members` also contains `mentor_index`, which represents the mentorship relationship directly as a foreign key to `full_members`.
    223223
    224 The weak entities from ERModel_v11 are represented with composite primary keys where they still depend on an owner entity. `event_functions` uses `(ee_id, ef_no)`, and `event_sessions` uses `(ee_id, es_no)`. Other concrete entities such as `activity_sessions` and `event_editions` use their own numeric identifiers.
     224The weak entities from ERModel_v12 are represented with composite primary keys where they still depend on an owner entity. `event_functions` uses `(ee_id, ef_no)`, and `event_sessions` uses `(ee_id, es_no)`. Other concrete entities such as `activity_sessions` and `event_editions` use their own numeric identifiers.
    225225
    226226The Locations entity is represented with `locations`. The relationship between !EventEditions and Locations is represented with `event_edition_locations`.
    … …  
    248248== AI Use ==
    249249
    250 AI was used during this phase as a consultation, drafting, and checking tool while preparing the relational design from the already completed ERModel_v11. The AI-assisted parts were reviewed against the existing ER model and project requirements before being included.
     250AI was used during this phase as a consultation, drafting, and checking tool while preparing the relational design from the already completed ER model. The AI-assisted parts were reviewed against the existing ER model and project requirements before being included.
    251251
    252252Full AI usage documentation: [wiki:RelationalDesignAIUsage RelationalDesignAIUsage].