Changes between Version 19 and Version 20 of Conceptual Design – ER Diagram and Data Requirements
- Timestamp:
- 08/28/25 21:54:11 (5 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Conceptual Design – ER Diagram and Data Requirements
v19 v20 140 140 * item_id - foreign key, required 141 141 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 142 151 === Relations=== 143 152 === 1:1 === … … 150 159 * Admin → App User \\ 151 160 **''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 152 165 === 1:M === 153 166 … … 216 229 **''contains''** – relation between Menu and Item where an item can belong to many menu's and a menu can have many items.\\ 217 230 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.\\