Changes between Version 35 and Version 36 of ERModel
- Timestamp:
- 05/27/26 23:15:22 (7 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ERModel
v35 v36 26 26 * __wishlist_id__ (bigint) 27 27 28 **5. !WishlistItem** - A specific product added to a wishlist 29 * __wishlist_id*__ (bigint) 30 * __product_id*__ (bigint) 31 * added_at (date, required) 32 33 **6. Product** - A purchasable item with price, stock, and format 28 **5. Product** - A purchasable item with price, stock, and format 34 29 * __product_id__ (bigint) 35 30 * format (enum, required) … … 38 33 * stock (bigint, required) 39 34 40 ** 7. Release** - A musical work that groups different product formats35 **6. Release** - A musical work that groups different product formats 41 36 * __release_id__ (bigint) 42 37 * title (text, required) … … 46 41 * cover_photo (text, required) 47 42 48 ** 8. Album** - A type of release consisting of multiple songs43 **7. Album** - A type of release consisting of multiple songs 49 44 * __release_id*__ (bigint) 50 45 51 ** 9. Single** - A type of release typically representing a single track46 **8. Single** - A type of release typically representing a single track 52 47 * __release_id*__ (bigint) 53 48 * duration (text, required) 54 49 55 ** 10. Artist** - A creator or performer associated with releases and songs50 **9. Artist** - A creator or performer associated with releases and songs 56 51 * __artist_id__ (bigint) 57 52 * artist_name(text, required) … … 59 54 * artist_photo (text, optional) 60 55 61 **1 1. Song** - An individual track that can belong to albums56 **10. Song** - An individual track that can belong to albums 62 57 * __song_id__ (bigint) 63 58 * song_name(text, required) 64 59 * song_duration (text, required) 65 60 66 **12. !OrderItem ** - A specific product entry within an order 67 * __order_id*__ (bigint) 68 * __product_id*__ (bigint) 69 * price_at_purchase (numeric, required) 70 * quantity (bigint, required) 71 72 **13. Order ** - A transaction made by a user containing purchased products 61 **11. Order ** - A transaction made by a user containing purchased products 73 62 * __order_id__ (bigint) 74 63 * payment_method (enum, required) … … 78 67 * status (enum, required) 79 68 80 **1 4. Modification** - An action performed by an admin that changes or creates one or more products69 **12. Modification** - An action performed by an admin that changes or creates one or more products 81 70 * __modification_id__ (bigint) 82 71 * date_modified (date, required) … … 102 91 Each Product represents a specific format of one Release, while a Release can have multiple Products. 103 92 104 **5. refers** (!OrderItem ↔ Product, N:1)\\105 Each !OrderItem refers to one Product, while a Product can appear in multiple !OrderItems.93 **5. contains** (Order ↔ Product, N:M)\\ 94 Each Order contains multiple Products, while each Product can belong to multiple Orders. 106 95 107 **6. contains** (Order ↔ !OrderItem, 1:N)\\ 108 Each Order contains multiple !OrderItems, while each !OrderItem belongs to exactly one Order. 96 **Attributes:** quantity, price_at_purchase 109 97 110 ** 7. creates** (User ↔ Order, 1:N)\\98 **6. creates** (User ↔ Order, 1:N)\\ 111 99 Each User can create multiple Orders, while each Order is created by exactly one User. 112 100 113 ** 8. performs** (Admin ↔ Modification, 1:N)\\101 **7. performs** (Admin ↔ Modification, 1:N)\\ 114 102 Each Admin can perform multiple Modifications, while each Modification is performed by exactly one Admin. 115 103 116 ** 9. refers **(Modification ↔ Product, M:N)\\104 **8. refers **(Modification ↔ Product, M:N)\\ 117 105 Each Modification can affect multiple Products, while each Product can be affected by multiple Modifications. 118 106 119 ** 10. has **(User ↔ Wishlist, 1:1)\\107 **9. has **(User ↔ Wishlist, 1:1)\\ 120 108 Each User has exactly one Wishlist, and each Wishlist belongs to exactly one User. 121 109 122 **1 1. has ** (Wishlist ↔ !WishlistItem, 1:N)\\123 Each W ishlist contains multiple !WishlistItems, while each !WishlistItem belongs to exactly one Wishlist.110 **10. contains** (Whishlist ↔ Product, N:M)\\ 111 Each Whislist contains multiple Products, while each Product can belong to multiple Wishlists. 124 112 125 **12. refers ** (!WishlistItem ↔ Product, N:1)\\ 126 Each !WishlistItem refers to one Product, while a Product can appear in multiple !WishlistItems. 113 **Attributes:** quantity, price_at_purchase 127 114 128 115 == Entity-Relationship Model History
