| | 1 | = UseCase008 - New Product creation |
| | 2 | |
| | 3 | **Initiating actor:** Logged-In Admin |
| | 4 | |
| | 5 | {{{#!div style="text-align: justify; width: 100%;" |
| | 6 | The goal of this use case is to allow an administrator to introduce a new physical format for an existing musical release into the store's inventory. By creating a new product record, the admin can specify unique attributes such as the media format, price, and initial stock levels, making the item available for consumers to purchase. |
| | 7 | }}} |
| | 8 | |
| | 9 | == Scenario |
| | 10 | |
| | 11 | {{{#!div style="text-align: justify; width: 100%;" |
| | 12 | |
| | 13 | 1. Admin selects an existing {{{Release}}} (Album or Single) for which they want to add a new physical version. |
| | 14 | |
| | 15 | 2. Admin enters the specific details for the new inventory item, including the {{{format}}} (e.g., Vinyl, CD, Cassette), the unit {{{price}}}, a brief {{{description}}}, and the initial {{{stock}}} quantity. |
| | 16 | |
| | 17 | 3. System validates that the provided information meets the required data formats and that the {{{product_id}}} is unique. |
| | 18 | |
| | 19 | 4. System creates a new entry in the {{{Product}}} table, establishing a "version of" relationship with the selected {{{release_id}}}. |
| | 20 | |
| | 21 | 5. System updates the catalog to include this new {{{Product}}}, making it visible and available for purchase on the corresponding release page. |
| | 22 | }}} |