Changes between Version 1 and Version 2 of UseCase008
- Timestamp:
- 05/13/26 14:58:36 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase008
v1 v2 11 11 {{{#!div style="text-align: justify; width: 100%;" 12 12 13 1. Admin selects an existing {{{Release}}}(Album or Single) for which they want to add a new physical version.13 1. Admin selects an existing Release (Album or Single) for which they want to add a new physical version. 14 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. 15 {{{#!div style="margin-left: 20px;" 16 {{{ 17 SELECT release_id, title 18 FROM Release; 19 }}} 20 }}} 16 21 17 3. System validates that the provided information meets the required data formats and that the {{{product_id}}} is unique.22 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. 18 23 19 4. System creates a new entry in the {{{Product}}} table, establishing a "version of" relationship with the selected {{{release_id}}}.24 3. System validates that the provided information meets the required data formats and that the product_id is unique. 20 25 21 5. System updates the catalog to include this new {{{Product}}}, making it visible and available for purchase on the corresponding release page. 26 {{{#!div style="margin-left: 20px;" 27 {{{ 28 SELECT COUNT(*) 29 FROM Product 30 WHERE product_id = @new_product_id; 22 31 }}} 32 }}} 33 34 4. System creates a new entry in the Product table, establishing a "version of" relationship with the selected release_id. 35 36 {{{#!div style="margin-left: 20px;" 37 {{{ 38 INSERT INTO Product (release_id, format, price, description, stock) 39 VALUES (@selected_release_id, 'Vinyl', 3059, '180g Black Vinyl', 50); 40 }}} 41 }}} 42 43 5. System updates the catalog to include this new Product, making it visible and available for purchase on the corresponding release page. 44 45 {{{#!div style="margin-left: 20px;" 46 {{{ 47 SELECT * 48 FROM Product 49 WHERE release_id = @selected_release_id; 50 }}} 51 }}} 52 53 }}}
