Changes between Version 1 and Version 2 of UseCase008


Ignore:
Timestamp:
05/13/26 14:58:36 (2 weeks ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase008

    v1 v2  
    1111{{{#!div style="text-align: justify; width: 100%;"
    1212
    13 1. Admin selects an existing {{{Release}}} (Album or Single) for which they want to add a new physical version.
     131. Admin selects an existing Release (Album or Single) for which they want to add a new physical version.
    1414
    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{{{
     17SELECT release_id, title
     18FROM Release;
     19}}}
     20}}}
    1621
    17 3. System validates that the provided information meets the required data formats and that the {{{product_id}}} is unique.
     222. 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.
    1823
    19 4. System creates a new entry in the {{{Product}}} table, establishing a "version of" relationship with the selected {{{release_id}}}.
     243. System validates that the provided information meets the required data formats and that the product_id is unique.
    2025
    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{{{
     28SELECT COUNT(*)
     29FROM Product
     30WHERE product_id = @new_product_id;
    2231}}}
     32}}}
     33
     344. 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{{{
     38INSERT INTO Product (release_id, format, price, description, stock)
     39VALUES (@selected_release_id, 'Vinyl', 3059, '180g Black Vinyl', 50);
     40}}}
     41}}}
     42
     435. 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{{{
     47SELECT *
     48FROM Product
     49WHERE release_id = @selected_release_id;
     50}}}
     51}}}
     52
     53}}}