Changes between Version 1 and Version 2 of UseCase0002


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

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0002

    v1 v2  
    33'''Initiating actor:''' Board Member
    44
    5 A Board Member creates an activity session and records who is responsible for it. The scenario creates a PR workshop connected to BEST Course in Summer 2026.
     5A Board Member creates an activity session and records who is responsible for it. In this scenario, the Board Member is acting as the PR Coordinator and creates a PR workshop connected to BEST Course in Summer 2026.
    66
    77== Scenario ==
     
    991. The Board Member opens the activity session creation form.
    1010
    11 2. The application lists available activity types.
     112. The application lists available activity types and locations.
    1212
    1313{{{#!sql
    1414SELECT
     15    at_id,
    1516    at_name,
    1617    at_description
    1718FROM activity_types
    1819ORDER BY at_name;
     20
     21SELECT
     22    l_id,
     23    l_name
     24FROM locations
     25ORDER BY l_name;
    1926}}}
    2027
     
    2532{{{#!sql
    2633INSERT INTO activity_sessions (
    27     at_name,
    28     as_start_time,
    29     as_location
     34    as_id,
     35    at_id,
     36    l_id,
     37    as_start_time
    3038)
    3139VALUES (
    32     'PR Workshop',
    33     TIMESTAMP '2026-06-22 17:00:00',
    34     'Baraka 2.1'
     40    1001,
     41    5,
     42    2,
     43    TIMESTAMP '2026-06-22 17:00:00'
    3544);
    3645}}}
     
    4150INSERT INTO responsible_for (
    4251    student_index,
    43     at_name,
    44     as_start_time,
    45     as_location
     52    as_id
    4653)
    4754VALUES (
    4855    230006,
    49     'PR Workshop',
    50     TIMESTAMP '2026-06-22 17:00:00',
    51     'Baraka 2.1'
     56    1001
    5257);
    5358}}}
     
    5762{{{#!sql
    5863INSERT INTO related_to (
    59     at_name,
    60     as_start_time,
    61     as_location,
    62     et_name,
    63     event_title,
    64     event_start_time
     64    as_id,
     65    ee_id
    6566)
    6667VALUES (
    67     'PR Workshop',
    68     TIMESTAMP '2026-06-22 17:00:00',
    69     'Baraka 2.1',
    70     'BEST Course in Summer',
    71     'BEST Course in Summer 2026',
    72     TIMESTAMP '2026-07-05 12:00:00'
     68    1001,
     69    6
    7370);
    7471}}}
     
    7875{{{#!sql
    7976SELECT
    80     a.at_name,
     77    a.as_id,
     78    at.at_name,
    8179    a.as_start_time,
    82     a.as_location,
     80    l.l_name,
    8381    s.first_name || ' ' || s.last_name AS responsible_member,
    84     rt.et_name,
    85     rt.event_title
     82    ee.ee_title
    8683FROM activity_sessions a
     84JOIN activity_types at
     85    ON at.at_id = a.at_id
     86JOIN locations l
     87    ON l.l_id = a.l_id
    8788JOIN responsible_for rf
    88     ON rf.at_name = a.at_name
    89    AND rf.as_start_time = a.as_start_time
    90    AND rf.as_location = a.as_location
     89    ON rf.as_id = a.as_id
    9190JOIN students s
    9291    ON s.student_index = rf.student_index
    9392LEFT JOIN related_to rt
    94     ON rt.at_name = a.at_name
    95    AND rt.as_start_time = a.as_start_time
    96    AND rt.as_location = a.as_location
    97 WHERE a.at_name = 'PR Workshop'
    98   AND a.as_start_time = TIMESTAMP '2026-06-22 17:00:00'
    99   AND a.as_location = 'Baraka 2.1';
     93    ON rt.as_id = a.as_id
     94LEFT JOIN event_editions ee
     95    ON ee.ee_id = rt.ee_id
     96WHERE a.as_id = 1001;
    10097}}}