Changes between Version 4 and Version 5 of ERModel
- Timestamp:
- 05/04/26 02:09:46 (3 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ERModel
v4 v5 17 17 DESCREPTION OF THE ENTITY/RELATIONSHIP 18 18 19 * **1.User:** 19 * **Attributes:** 20 * NAME_OF_ATTRIBUTE (TYPE, Required/Optional) - DESCREPTION 21 22 23 24 **1.User:** 20 25 * user_id (bigint) - primary key 21 26 * email (text) … … 24 29 * date_created (date) 25 30 26 ***2.Admin:**31 **2.Admin:** 27 32 * type (text) 28 33 * employee_id (bigint) 29 34 30 * **3.Consumer:** 35 **3.Consumer** 36 * **Candidate Keys** 31 37 * telephone_number (text) 32 38 * shipping_address (text) 33 39 * points_collected (bigint) 34 40 35 * **4.Wishlist:** 41 **4.Wishlist:** 42 * **Candidate Keys** 36 43 * wishlist_id (bigint) - primary key 37 44 38 * **5.WishlistItem:** 45 **5.WishlistItem:** 46 * **Candidate Keys** 39 47 * wishlist_id (bigint) - foreign key(Wishlist) 40 48 * product_id (bigint) - foreign key(Product) 41 49 * added_at (date) 42 50 43 * **6.Product:** 51 **6.Product:** 52 * **Candidate Keys** 44 53 * product_id (bigint) - primary key 45 54 * format (enum) … … 48 57 * stock (bigint) 49 58 50 * **7.Release:** 59 **7.Release:** 60 * **Candidate Keys** 51 61 * release_id (bigint) - primary key 52 62 * title (text) … … 56 66 * cover_photo (text) 57 67 58 * **8.Album:** 68 **8.Album:** 69 * **Candidate Keys** 59 70 60 * **9.Single:** 71 **9.Single:** 72 * **Candidate Keys** 61 73 * duration (text) 62 74 63 * **10.Artist:** 75 **10.Artist:** 76 * **Candidate Keys** 64 77 * artist_id (bigint) - primary key 65 78 * artist_name(text) … … 67 80 * photo (text) 68 81 69 * **11.Song:** 82 **11.Song:** 83 * **Candidate Keys** 70 84 * song_id(bigint) - primary key 71 85 * song_name(text) … … 73 87 * duration (text) 74 88 75 * **12.OrderItem:** 89 **12.OrderItem:** 90 * **Candidate Keys** 76 91 * order_id (bigint) - foreign key(Order) 77 92 * product_id (bigint) - foreign key(Product) … … 79 94 * quantity (bigint) 80 95 81 * **13.Order:** 96 **13.Order** 97 * **Candidate Keys** 82 98 * order_id (bigint) - primary key 99 * **Attributes:** 83 100 * payment_method (enum) 84 101 * purchase_date (date) 85 102 * points (bigint) 86 87 88 89 90 * **Attributes:**91 * NAME_OF_ATTRIBUTE (TYPE, Required/Optional) - DESCREPTION92 93 94 103 95 104 == Relationships … … 128 137 Every Product can be a WishlistItem. 129 138 130 131 List all entities and relationships with the following information for each of them132 133 Entity/relationship name: one paragraph of explanation, what does the entity/relationship represent, why it is needed, why is it modeled the way it is134 135 Candidate keys: If you have multiple candidates for the primary key, list them and explain which one you chose as the primary key and why you chose it as the primary key136 137 List of entity attributes, for each of them: the data type (numeric/text/date/…) and whether there are any restrictions in the input form/format (required/optional, special format, value interval, …)138 139 140 141 139 == Entity-Relationship Model History 142 140
