| | 1 | = UC0006 - Submit Application = |
| | 2 | |
| | 3 | '''Initiating actor:''' Student |
| | 4 | |
| | 5 | A Student submits an application for an event participation process. The scenario stores a new student and their Hackathon participation application. |
| | 6 | |
| | 7 | == Scenario == |
| | 8 | |
| | 9 | 1. The Student opens the Hackathon participation application form. |
| | 10 | |
| | 11 | 2. The application lists event editions that accept participation applications. |
| | 12 | |
| | 13 | {{{#!sql |
| | 14 | SELECT |
| | 15 | ee.et_name, |
| | 16 | ee.event_title, |
| | 17 | ee.event_start_time, |
| | 18 | ee.event_end_time |
| | 19 | FROM event_editions ee |
| | 20 | WHERE ee.et_name IN ('Hackathon', 'BEST Course in Summer') |
| | 21 | ORDER BY ee.event_start_time; |
| | 22 | }}} |
| | 23 | |
| | 24 | 3. The Student enters personal data and chooses Impact Hackathon 2026. |
| | 25 | |
| | 26 | 4. The application stores the student data. |
| | 27 | |
| | 28 | {{{#!sql |
| | 29 | INSERT INTO students ( |
| | 30 | student_index, |
| | 31 | first_name, |
| | 32 | last_name, |
| | 33 | faculty, |
| | 34 | field_of_studies, |
| | 35 | year_of_studies, |
| | 36 | birthday, |
| | 37 | email, |
| | 38 | phone_number |
| | 39 | ) |
| | 40 | VALUES ( |
| | 41 | 230033, |
| | 42 | 'Martina', |
| | 43 | 'Ilievska', |
| | 44 | 'FINKI', |
| | 45 | 'Software Engineering and Information Systems', |
| | 46 | 2, |
| | 47 | DATE '2004-10-12', |
| | 48 | 'martina.ilievska@student.ukim.mk', |
| | 49 | '+38970111033' |
| | 50 | ); |
| | 51 | }}} |
| | 52 | |
| | 53 | 5. The Student enters a motivational letter. |
| | 54 | |
| | 55 | 6. The application stores the submitted application. |
| | 56 | |
| | 57 | {{{#!sql |
| | 58 | INSERT INTO applications ( |
| | 59 | student_index, |
| | 60 | et_name, |
| | 61 | event_title, |
| | 62 | event_start_time, |
| | 63 | function_name, |
| | 64 | motivational_letter, |
| | 65 | application_type, |
| | 66 | application_status |
| | 67 | ) |
| | 68 | VALUES ( |
| | 69 | 230033, |
| | 70 | 'Hackathon', |
| | 71 | 'Impact Hackathon 2026', |
| | 72 | TIMESTAMP '2026-12-12 09:00:00', |
| | 73 | NULL, |
| | 74 | 'I want to participate in the hackathon because I want to solve a real challenge with a team and improve my practical skills.', |
| | 75 | 'event_participation', |
| | 76 | 'submitted' |
| | 77 | ); |
| | 78 | }}} |
| | 79 | |
| | 80 | 7. The application shows the submitted application. |
| | 81 | |
| | 82 | {{{#!sql |
| | 83 | SELECT |
| | 84 | a.application_id, |
| | 85 | s.first_name, |
| | 86 | s.last_name, |
| | 87 | a.et_name, |
| | 88 | a.event_title, |
| | 89 | a.function_name, |
| | 90 | a.application_type, |
| | 91 | a.application_status |
| | 92 | FROM applications a |
| | 93 | JOIN students s |
| | 94 | ON s.student_index = a.student_index |
| | 95 | WHERE s.email = 'martina.ilievska@student.ukim.mk' |
| | 96 | AND a.et_name = 'Hackathon' |
| | 97 | AND a.event_title = 'Impact Hackathon 2026' |
| | 98 | AND a.event_start_time = TIMESTAMP '2026-12-12 09:00:00'; |
| | 99 | }}} |