Changes between Version 1 and Version 2 of UseCase0001


Ignore:
Timestamp:
09/02/26 20:28:39 (4 days ago)
Author:
236024
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0001

    v1 v2  
    33'''Initiating actor:''' Board Member
    44
    5 A Board Member views the stored data for a selected BEST Skopje member. The goal is to see the member's profile, current membership stage, mentor, current organisational function, previous membership stages, and applications.
     5A Board Member views the stored data for a selected BEST Skopje member. In this scenario, the Board Member is acting as the HR Coordinator. The goal is to see the member's profile, current membership stage, mentor, current organisational function, previous membership stages, and applications.
    66
    77== Scenario ==
     
    1717    s.last_name,
    1818    s.faculty,
    19     hs.ms_name AS current_membership_stage
     19    ms.ms_name AS current_membership_stage
    2020FROM students s
    2121JOIN members m
     
    2424    ON hs.student_index = s.student_index
    2525   AND hs.valid_to IS NULL
     26LEFT JOIN membership_stages ms
     27    ON ms.ms_id = hs.ms_id
    2628WHERE lower(s.first_name) LIKE lower('%Dario%')
    2729   OR lower(s.last_name) LIKE lower('%Dario%')
     
    4345    s.email,
    4446    s.phone_number,
    45     hs.ms_name AS current_membership_stage,
     47    ms.ms_name AS current_membership_stage,
    4648    hs.valid_from AS current_stage_valid_from,
    4749    ym.mentor_index,
    4850    mentor.first_name AS mentor_first_name,
    4951    mentor.last_name AS mentor_last_name,
    50     iof.of_title AS current_organizational_function,
    51     iof.mandate
     52    ofn.of_title AS current_organizational_function,
     53    fm.mandate_year
    5254FROM students s
    5355JOIN members m
     
    5658    ON hs.student_index = s.student_index
    5759   AND hs.valid_to IS NULL
     60LEFT JOIN membership_stages ms
     61    ON ms.ms_id = hs.ms_id
    5862LEFT JOIN young_members ym
    5963    ON ym.student_index = s.student_index
    6064LEFT JOIN students mentor
    6165    ON mentor.student_index = ym.mentor_index
    62 LEFT JOIN is_organizational_function iof
    63     ON iof.student_index = s.student_index
    64    AND iof.mandate = '2025/2026'
     66LEFT JOIN function_mandates fm
     67    ON fm.student_index = s.student_index
     68   AND fm.mandate_year = 2025
     69LEFT JOIN organizational_functions ofn
     70    ON ofn.of_id = fm.of_id
    6571WHERE s.student_index = 230024;
    6672}}}
     
    7076{{{#!sql
    7177SELECT
    72     hs.ms_name,
     78    ms.ms_name,
    7379    hs.valid_from,
    7480    hs.valid_to
    7581FROM has_stage hs
     82JOIN membership_stages ms
     83    ON ms.ms_id = hs.ms_id
    7684WHERE hs.student_index = 230024
    7785ORDER BY hs.valid_from;
     
    8391SELECT
    8492    a.application_id,
    85     a.et_name,
    86     a.event_title,
    87     a.event_start_time,
    88     a.function_name,
     93    et.et_name,
     94    ee.ee_title,
     95    ee.ee_start_time,
     96    eft.eft_name,
    8997    a.application_type,
    9098    a.application_status
    9199FROM applications a
     100JOIN event_editions ee
     101    ON ee.ee_id = a.ee_id
     102JOIN event_types et
     103    ON et.et_id = ee.et_id
     104LEFT JOIN event_functions ef
     105    ON ef.ee_id = a.ee_id
     106   AND ef.ef_no = a.ef_no
     107LEFT JOIN event_function_types eft
     108    ON eft.eft_id = ef.eft_id
    92109WHERE a.student_index = 230024
    93 ORDER BY a.event_start_time, a.application_id;
     110ORDER BY ee.ee_start_time, a.application_id;
    94111}}}