Changes between Version 2 and Version 3 of ERModel
- Timestamp:
- 09/18/26 04:57:30 (11 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ERModel
v2 v3 1 1 == ERModel Current version == 2 2 == Diagram == 3 [[Image(Handcrafts-storeDB- Edit3.png)]]3 [[Image(Handcrafts-storeDB-edit3.png)]] 4 4 5 5 == Data requirements == … … 125 125 * {{{product_code}}} - numeric, required. 126 126 * {{{changes_made}}} – text, required. 127 [[BR]] CASCADE127 [[BR]] 128 128 ---- 129 129 {{{ORDER}}} … … 141 141 * {{{payment_method}}} – text, required. 142 142 * {{{discount}}} – numeric, optional. 143 [[BR]] 144 145 ---- 146 {{{REVIEW}}} 147 [[BR]] 148 Represents reviews for orders. 149 [[BR]] 150 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 151 * {{{order_num}}} - surrogate numeric identifier (foreign primary key). 152 [[BR]] 153 '''[[span(style=color: #9A0000, Attributes:)]]''' 154 * {{{comment}}} – text, required. 155 * {{{rating}}} – numeric, required. 156 * {{{last_modified_date}}} – timestamp, required. 157 [[BR]] 158 159 ---- 160 {{{REFUND}}} 161 [[BR]] 162 Represents a refund/return for orders. 163 [[BR]] 164 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 165 * {{{refund_id}}} - surrogate numeric identifier (primary key). 166 * {{{order_num}}} - surrogate numeric identifier (foreign partial key). 167 [[BR]] 168 '''[[span(style=color: #9A0000, Attributes:)]]''' 169 * {{{comment}}} – text, required. 170 * {{{rating}}} – numeric, required. 171 * {{{last_modified_date}}} – timestamp, required. 143 172 [[BR]] 144 173 ---- … … 166 195 === RELATIONS === 167 196 168 {{{review (ORDER)}}}169 [[BR]]170 Represents reviews for orders.171 [[BR]]172 '''[[span(style=color: #9A0000, Keys:)]]'''173 ({{{order_num}}})174 [[BR]]175 '''[[span(style=color: #9A0000, Attributes:)]]'''176 * {{{comment}}} – text, required.177 * {{{rating}}} – numeric, required.178 * {{{last_modified_date}}} – timestamp, required.179 [[BR]]180 ----181 197 {{{works_in_store (PERSONAL – STORE)}}} 182 198 [[BR]] … … 231 247 [[BR]] 232 248 ---- 233 {{{made_on (PRODUCT – CHANGE)}}}234 [[BR]]235 Represents changes made on products.236 [[BR]]237 '''[[span(style=color: #9A0000, Keys:)]]'''238 Composite key: ({{{code}}}, {{{date_and_time}}}).239 [[BR]]240 ----241 249 {{{exchanges_data (REPORT – STORE)}}} 242 250 [[BR]] … … 281 289 [[BR]] 282 290 ---- 283 {{{makes_order (CLIENT – ORDER)}}}284 [[BR]]285 Represents clients making orders.286 [[BR]]287 '''[[span(style=color: #9A0000, Keys:)]]'''288 Composite key: ({{{client_ID}}}, {{{order_num}}}).289 [[BR]]290 ----291 291 {{{for_store (REQUEST – STORE)}}} 292 292 [[BR]] … … 303 303 Edited on 17.12.2025 304 304 305 Last edit on 20.12.2025 305 Edited on 20.12.2025 306 307 Last edited on 18.09.2026
