Changes between Version 19 and Version 20 of Conceptual Design – ER Diagram and Data Requirements


Ignore:
Timestamp:
08/28/25 21:54:11 (5 days ago)
Author:
221531
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Conceptual Design – ER Diagram and Data Requirements

    v19 v20  
    140140* item_id - foreign key, required
    141141
     142**24. Shopping Cart**\\
     143* cart_id - primary key, numeric, required
     144
     145**25. Cart Items**\\
     146* cart_id - foreign key, required
     147* item_id - foreign key, required
     148* quantity - numeric type, required
     149
     150
    142151=== Relations===
    143152=== 1:1 ===
     
    150159* Admin → App User  \\
    151160    **''manages''** – a relation which indicates that an admin is responsible for management of many users and a user is managed by a single admin.
     161
     162* Customer → Shopping Cart  \\
     163    **''has''** – a relation which indicates that a customer has 1 shopping cart, and a shopping cart belongs to a user.
     164
    152165=== 1:M ===
    153166
     
    216229    **''contains''** – relation between Menu and Item where an item can belong to many menu's and a menu can have many items.\\
    217230
     231\\
     232* Shopping Cart ↔ Shopping Cart Items ↔ Item\\
     233    **Junction: ** Shopping Cart Items solves M:N relation of Shopping Cart and Item, by storing the composite key (cart_id, item_id)\\
     234
     235    **''cart_items''** – relation between Shopping Cart and Item where an item can belong to many shopping cart's and a shopping cart can have many items.\\