Changes between Version 7 and Version 8 of ERModel
- Timestamp:
- 09/19/26 06:15:20 (10 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ERModel
v7 v8 14 14 [[BR]] 15 15 '''[[span(style=color: #9A0000, Attributes:)]]''' 16 * {{{code}}} – numeric, required. Auto-generated primary key.16 * {{{code}}} – surrogare numeric identifier, required. Auto-generated primary key. 17 17 * {{{price}}} – numeric, required. 18 18 * {{{availability}}} – numeric, required. 19 * {{{description}}} – text, required.20 * {{{images}}} – multi-valued, media, required.21 * {{{dimensions}}} – complex, text, required.22 19 * {{{weight}}} – numeric, required. 23 20 * {{{width_X_length_X_depth}}} – text, required. 24 * {{{colors}}} – multi-valued, text, required.25 21 * {{{approx_production_time}}} – numeric, required. Expressed in days. 22 * {{{description}}} – text, required. 23 * {{{cathegory_id}}} - text, required, foreign key from {{{category}}} entity. 24 * {{{image}}} – multi-valued, media, required. 25 * {{{color}}} – multi-valued, text, required. 26 27 [[BR]] 28 ---- 29 {{{category}}} 30 [[BR]] 31 Represents all the categories of products there are on the marketplace. The primary category is the only one with the parent_category_id being the same as the id attribute. 32 [[BR]] 33 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 34 * {{{id}}} - surrogare numeric identifier (primary key). 35 [[BR]] 36 '''[[span(style=color: #9A0000, Attributes:)]]''' 37 * {{{id}}} - surrogare numeric identifier, required. Auto-generated primary key. 38 * {{{name}}} - text, required. 39 * {{{parent_category_id}}} - surrogate numeric identifier, required. 40 26 41 [[BR]] 27 42 ---- … … 31 46 [[BR]] 32 47 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 33 * {{{SSN}}} – numeric identifier (primary key). 34 [[BR]] 35 '''[[span(style=color: #9A0000, Attributes:)]]''' 36 * {{{SSN}}} – numeric, required. Primary key. 48 * {{{id}}} – surrogate numeric identifier (primary key). 49 [[BR]] 50 '''[[span(style=color: #9A0000, Attributes:)]]''' 37 51 * {{{name}}} – complex, text, required. 38 52 * {{{first_name}}} – text, required. 39 53 * {{{last_name}}} – text, required. 40 * {{{ middle_name}}} – text, optional.54 * {{{SSN}}} – numeric, required. 41 55 * {{{email}}} – text, required. 42 56 * {{{password}}} – hash value, required. … … 51 65 [[BR]] 52 66 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 53 * {{{SSN}}} – inherited primary key. 54 * {{{signature}}} - boss' signature for authorising Reports and Permissions. 67 * {{{boss_ID}}} – inherited primary key. 55 68 [[BR]] 56 69 ---- … … 60 73 [[BR]] 61 74 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 62 * {{{ SSN}}} – inherited primary key.75 * {{{employee_ID}}} – inherited primary key. 63 76 [[BR]] 64 77 '''[[span(style=color: #9A0000, Attributes:)]]''' … … 90 103 [[BR]] 91 104 '''[[span(style=color: #9A0000, Attributes:)]]''' 92 * {{{client_ID}}} – numeric, required. Auto-generated primary key.93 105 * {{{name}}} – complex, text, required. 94 106 * {{{first_name}}} – text, required. … … 96 108 * {{{email}}} – text, required. 97 109 * {{{password}}} – hash value, required. 98 * {{{delivery_address}}} – multi-valued text, required. 110 * {{{delivery_address}}} – complex, multi-valued text, required. 111 * {{{address}}} - text, required. 112 * {{{city}}} - text, required. 113 * {{{postcode}}} - text, required. 114 * {{{country}}} - text, required. 115 * {{{is_default}}} - boolean, required. 99 116 [[BR]] 100 117 ---- … … 107 124 [[BR]] 108 125 '''[[span(style=color: #9A0000, Attributes:)]]''' 109 * {{{request_num}}} – numeric, required. Auto-generated primary key.110 126 * {{{date_and_time}}} – timestamp, required. 111 127 * {{{problem}}} – text, required. … … 119 135 [[BR]] 120 136 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 121 * {{{date_and_time}}} – timestamp identifier (primary key).137 Composite key: ({{{date_and_time}}}, {{{product_code}}}). 122 138 [[BR]] 123 139 '''[[span(style=color: #9A0000, Attributes:)]]''' 124 140 * {{{date_and_time}}} – timestamp, required. Primary key. 125 141 * {{{product_code}}} - numeric, required. 126 * {{{changes _made}}} – text, required.142 * {{{changes}}} – text, required. 127 143 [[BR]] 128 144 ---- … … 136 152 '''[[span(style=color: #9A0000, Attributes:)]]''' 137 153 * {{{order_num}}} – numeric, required. Auto-generated primary key. 154 * {{{client_ID}}} - numeric, required. Foreign key from {{{CLIENT}}}. 138 155 * {{{quantity}}} – numeric, required. 139 156 * {{{status}}} – text, required. … … 167 184 [[BR]] 168 185 '''[[span(style=color: #9A0000, Attributes:)]]''' 169 * {{{ comment}}} – text, required.170 * {{{ rating}}} – numeric, required.171 * {{{ last_modified_date}}} – timestamp, required.186 * {{{reason}}} – text, required. 187 * {{{amount}}} – numeric, required. 188 * {{{status}}} – text, required. 172 189 [[BR]] 173 190 ---- … … 178 195 '''[[span(style=color: #9A0000, Candidate keys:)]]''' 179 196 * {{{date}}} – date identifier (partial key). 180 * {{{store_ID}}} – surrogate numeric identifier (foreign partial key), gotten from STORE entity. 181 [[BR]] 182 '''[[span(style=color: #9A0000, Attributes:)]]''' 183 * {{{date}}} – date, required. Partial primary key. 184 * {{{store_ID}}} – numeric, required. Foreign partial key. 197 * {{{store_ID}}} – surrogate numeric identifier (foreign partial key), gotten from {{{STORE}}} entity. 198 [[BR]] 199 '''[[span(style=color: #9A0000, Attributes:)]]''' 185 200 * {{{overall_profit}}} – numeric, required. Profit of the store from date of founding. 186 * {{{monthly_profit}}} – complex, multi-valued, numeric, required.187 * {{{month_and_year}}} – text, required.188 * {{{profit}}} – numeric, required.189 201 * {{{sales_trend}}} – text, optional. 190 202 * {{{marketing_growth}}} – text, optional. 191 203 * {{{owner_signature}}} – text, required. 204 * {{{monthly_profit}}} – complex, multi-valued, numeric, required. 205 * {{{month_and_year}}} – date, required. 206 * {{{profit}}} – numeric, required. 192 207 [[BR]] 193 208 ---- … … 200 215 [[BR]] 201 216 '''[[span(style=color: #9A0000, Keys:)]]''' 202 Composite key: ({{{ SSN}}}, {{{store_ID}}}).217 Composite key: ({{{personal_ID}}}, {{{store_ID}}}). 203 218 [[BR]] 204 219 ---- … … 208 223 [[BR]] 209 224 '''[[span(style=color: #9A0000, Keys:)]]''' 210 Composite key: ({{{SSN}}}, {{{date}}}, {{{store_ID}}}). 211 [[BR]] 212 '''[[span(style=color: #9A0000, Attributes:)]]''' 225 Composite key: ({{{personal_ID}}}, {{{report_date}}}, {{{store_ID}}}). 226 [[BR]] 227 '''[[span(style=color: #9A0000, Attributes:)]]''' 228 * {{{wage}}} – numeric, required. 229 * {{{pay_method}}} – text, required. 230 * {{{working_hours}}} – numeric,complex, required. 213 231 * {{{week}}} – numeric, required. 214 * {{{total_week}}} – numeric, required. Total hours worked that certain week. 215 * {{{pay_method}}} – text, required. 216 * {{{wage}}} – numeric, required. 217 * {{{working_hours}}} – numeric, required. 218 [[BR]] 219 ---- 220 {{{make_request (CLIENT – REQUEST)}}} 232 * {{{total_week}}} – numeric, required. 233 [[BR]] 234 ---- 235 {{{makes_request (CLIENT – REQUEST)}}} 221 236 [[BR]] 222 237 Represents clients making requests. … … 231 246 [[BR]] 232 247 '''[[span(style=color: #9A0000, Keys:)]]''' 233 Composite key: ({{{request_num}}}, {{{ SSN}}}).248 Composite key: ({{{request_num}}}, {{{personal_ID}}}). 234 249 [[BR]] 235 250 ---- … … 239 254 [[BR]] 240 255 '''[[span(style=color: #9A0000, Keys:)]]''' 241 Composite key: ({{{SSN}}}, {{{date_and_time}}}). 242 [[BR]] 243 '''[[span(style=color: #9A0000, Attributes:)]]''' 244 * {{{permission}}} – complex, text, required. 245 * {{{type}}} – text, required. 246 * {{{authorisation}}} – text, required. 256 Composite key: ({{{personal_id}}}, {{{date_and_time}}}, {{{product_code}}}). 247 257 [[BR]] 248 258 ---- … … 252 262 [[BR]] 253 263 '''[[span(style=color: #9A0000, Keys:)]]''' 254 Composite key: ({{{date}}}, {{{store_ID}}}). 255 [[BR]] 256 '''[[span(style=color: #9A0000, Attributes:)]]''' 257 * {{{store_ID}}} - numeric, required. 264 Composite key: ({{{report_date}}}, {{{store_ID}}}). 265 [[BR]] 266 '''[[span(style=color: #9A0000, Attributes:)]]''' 258 267 * {{{monthly_profit}}} – numeric, required. 268 * {{{date}}} - timestamp, optional. 259 269 * {{{sales}}} – numeric, required. 260 270 * {{{damages}}} – numeric, required. … … 266 276 [[BR]] 267 277 '''[[span(style=color: #9A0000, Keys:)]]''' 268 Composite key: ({{{code}}}, {{{store_ID}}}). 269 [[BR]] 270 '''[[span(style=color: #9A0000, Attributes:)]]''' 271 * {{{quantity}}} – numeric, required. 278 Composite key: ({{{product_codecode}}}, {{{store_ID}}}). 279 [[BR]] 280 '''[[span(style=color: #9A0000, Attributes:)]]''' 272 281 * {{{discount}}} – numeric, optional. 273 282 [[BR]] … … 278 287 [[BR]] 279 288 '''[[span(style=color: #9A0000, Keys:)]]''' 280 Composite key: ({{{date}}}, {{{SSN}}}). 281 [[BR]] 289 Composite key: ({{{report_date}}}, {{{store_ID}}}, {{{boss_ID}}}). 290 [[BR]] 291 '''[[span(style=color: #9A0000, Attributes:)]]''' 292 * {{{owner_signature}}} - media, optional. 282 293 ---- 283 294 {{{includes (PRODUCT – ORDER)}}} … … 286 297 [[BR]] 287 298 '''[[span(style=color: #9A0000, Keys:)]]''' 288 Composite key: ({{{ code}}}, {{{order_num}}}).299 Composite key: ({{{product_code}}}, {{{order_num}}}). 289 300 [[BR]] 290 301 ----
