Changes between Version 1 and Version 2 of UseCase0002
- Timestamp:
- 09/02/26 20:29:29 (4 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase0002
v1 v2 3 3 '''Initiating actor:''' Board Member 4 4 5 A Board Member creates an activity session and records who is responsible for it. The scenariocreates a PR workshop connected to BEST Course in Summer 2026.5 A 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. 6 6 7 7 == Scenario == … … 9 9 1. The Board Member opens the activity session creation form. 10 10 11 2. The application lists available activity types .11 2. The application lists available activity types and locations. 12 12 13 13 {{{#!sql 14 14 SELECT 15 at_id, 15 16 at_name, 16 17 at_description 17 18 FROM activity_types 18 19 ORDER BY at_name; 20 21 SELECT 22 l_id, 23 l_name 24 FROM locations 25 ORDER BY l_name; 19 26 }}} 20 27 … … 25 32 {{{#!sql 26 33 INSERT 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 30 38 ) 31 39 VALUES ( 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' 35 44 ); 36 45 }}} … … 41 50 INSERT INTO responsible_for ( 42 51 student_index, 43 at_name, 44 as_start_time, 45 as_location 52 as_id 46 53 ) 47 54 VALUES ( 48 55 230006, 49 'PR Workshop', 50 TIMESTAMP '2026-06-22 17:00:00', 51 'Baraka 2.1' 56 1001 52 57 ); 53 58 }}} … … 57 62 {{{#!sql 58 63 INSERT 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 65 66 ) 66 67 VALUES ( 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 73 70 ); 74 71 }}} … … 78 75 {{{#!sql 79 76 SELECT 80 a.at_name, 77 a.as_id, 78 at.at_name, 81 79 a.as_start_time, 82 a.as_location,80 l.l_name, 83 81 s.first_name || ' ' || s.last_name AS responsible_member, 84 rt.et_name, 85 rt.event_title 82 ee.ee_title 86 83 FROM activity_sessions a 84 JOIN activity_types at 85 ON at.at_id = a.at_id 86 JOIN locations l 87 ON l.l_id = a.l_id 87 88 JOIN 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 91 90 JOIN students s 92 91 ON s.student_index = rf.student_index 93 92 LEFT 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 94 LEFT JOIN event_editions ee 95 ON ee.ee_id = rt.ee_id 96 WHERE a.as_id = 1001; 100 97 }}}
