Changes between Initial Version and Version 1 of UseCase0002


Ignore:
Timestamp:
08/29/26 18:50:16 (8 days ago)
Author:
236024
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0002

    v1 v1  
     1= UC0002 - Create Activity Session =
     2
     3'''Initiating actor:''' Board Member
     4
     5A 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.
     6
     7== Scenario ==
     8
     91. The Board Member opens the activity session creation form.
     10
     112. The application lists available activity types.
     12
     13{{{#!sql
     14SELECT
     15    at_name,
     16    at_description
     17FROM activity_types
     18ORDER BY at_name;
     19}}}
     20
     213. The Board Member enters the activity session data.
     22
     234. The application stores the activity session.
     24
     25{{{#!sql
     26INSERT INTO activity_sessions (
     27    at_name,
     28    as_start_time,
     29    as_location
     30)
     31VALUES (
     32    'PR Workshop',
     33    TIMESTAMP '2026-06-22 17:00:00',
     34    'Baraka 2.1'
     35);
     36}}}
     37
     385. The application records the responsible member.
     39
     40{{{#!sql
     41INSERT INTO responsible_for (
     42    student_index,
     43    at_name,
     44    as_start_time,
     45    as_location
     46)
     47VALUES (
     48    230006,
     49    'PR Workshop',
     50    TIMESTAMP '2026-06-22 17:00:00',
     51    'Baraka 2.1'
     52);
     53}}}
     54
     556. The application links the activity session to BEST Course in Summer 2026.
     56
     57{{{#!sql
     58INSERT INTO related_to (
     59    at_name,
     60    as_start_time,
     61    as_location,
     62    et_name,
     63    event_title,
     64    event_start_time
     65)
     66VALUES (
     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'
     73);
     74}}}
     75
     767. The application shows the created activity session.
     77
     78{{{#!sql
     79SELECT
     80    a.at_name,
     81    a.as_start_time,
     82    a.as_location,
     83    s.first_name || ' ' || s.last_name AS responsible_member,
     84    rt.et_name,
     85    rt.event_title
     86FROM activity_sessions a
     87JOIN 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
     91JOIN students s
     92    ON s.student_index = rf.student_index
     93LEFT 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
     97WHERE 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';
     100}}}