Changes between Version 23 and Version 24 of Normalization


Ignore:
Timestamp:
07/16/26 08:11:32 (10 days ago)
Author:
235018
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v23 v24  
    4141Instead of storing several colors or images in one field, each value gets its own row.
    4242
    43 ==== CLIENT
    44 
    45 ||= // client_id =||= // first_name =||=// last_name =||=// email  =||                                                                     
    46 || 1        || Ivan       || Stojanov  || ivan@gmail.com       ||
    47 || 2        || Marija     || Kostova   || marija@yahoo.com            ||
    48 || 3        || Antoneta   || Mariovska || mariovskaantoneta@finki.ukim.mk ||
    49 
    50 
    51 ==== DELIVERY ADDRESS
    52 
    53 ||= // client_id =||= // address =||                                                                     
    54 || 1        || st.Partizanska 10, 1000 Skopje  ||
    55 || 2        || st.Turisticka 5,7000 Bitola  ||
    56 || 3        || st.Ilindenska 20, 1000 Skopje   ||
    57 
    58 ==== STORE
    59 
    60 ||=// store_ID =||=// store_name     =||=// store_rating =||
    61 || 001     || WoodCraft Skopje || 4.6    ||
    62 || 002     || Fox Crochets     || 4.8    ||
    63  
    64 
    6543==== PRODUCT
    6644
    67 ||=// product_code =||=// description                =||=// price =||=// weight =||=// delivery_cost =||
     45||=// product_code =||=// description                =||=// price =||=//  availability =||=// dimmensions  =||=// weight =||=// delivery_cost =||=// aprox_production_time =||
    6846|| 00100001     || Handmade wooden chair with oak wood     || 700   || 2.5    || 50            ||
    6947|| 00200001     || Heart crochet                           || 50   || 0.2    || 0             ||
    7048|| 00200002     || Decorative wall hanging made with beads || 350   || 0.75   || 0             ||
    7149
    72 
    73 ==== PRODUCT COLORS
    74 
    75 ||=// product_code =||=// description                   =||=// price =||=// weight =||=// delivery_cost =||
    76 || 00100001     || Handmade wooden chair with oak wood     || 700   || 2.5    || 50            ||
    77 || 00200001     || Heart crochet                           || 150   || 0.2    || 0             ||
    78 || 00200002     || Decorative wall hanging made with beads || 199   || 0.75   || 0             ||
    79 
    80 ==== PRODUCT IMAGES
     50==== IMAGE
    8151
    8252||=// product_code =||=// image              =||
     
    8656|| 00200002         || wall_hanging.jpg       ||
    8757
     58==== COLOR
     59
     60||=// product_code =||=// description                   =||=// price =||=// weight =||=// delivery_cost =||
     61|| 00100001     || Handmade wooden chair with oak wood     || 700   || 2.5    || 50            ||
     62|| 00200001     || Heart crochet                           || 150   || 0.2    || 0             ||
     63|| 00200002     || Decorative wall hanging made with beads || 199   || 0.75   || 0             ||
     64
     65==== STORE
     66
     67||=// store_ID =||=// store_name     =||=// store_rating =||=// date_of_founding =||=// physical_address =||=// store_email =||
     68|| 001     || WoodCraft Skopje || 4.6    ||
     69|| 002     || Fox Crochets     || 4.8    ||
     70
     71==== PERSONAL
     72
     73||=// personal_SSN =||=// first_name =||=// last_name =||=// email =||=// password =||=//     type  =||=//         date_of_hire     =||
     74|| 1234567890123 || Marko      || Petrovski  || marko@woodcraft.mk        || BuHuhjgholko8u7T76TVYFgfChHBJHVGHh ||   STORE OWNER  ||          /   ||
     75|| 9876543210987 || Antonio    || Trajkovski || antonio@woodcraft.mk      || kgvhjgbJgfHGvHhbhg6777t^%dcGfyR%^G ||   EMPLOYEE  ||       2019-09-01        ||
     76|| 4567891234567 || Sara       || Vaneva     || s.vaneva@foxcrochets.mk   || UGUgt&^ghjGFu6tgVfCTYt6VghyT6yvHJg ||   STORE OWNER      ||         /    ||
     77
     78==== PERMISSIONS
     79
     80||=// personal_SSN  =||=//type     =||=// authorization =||
     81|| 1234567890123 || Boss     || Admin         ||
     82|| 9876543210987 || Employee || M.Petrovski   ||
     83|| 4567891234567 || Boss     || Admin         ||
     84
     85
     86==== CLIENT
     87
     88||= // client_id =||= // first_name =||=// last_name =||=// email  =||                                                                     
     89|| 1        || Ivan       || Stojanov  || ivan@gmail.com       ||
     90|| 2        || Marija     || Kostova   || marija@yahoo.com            ||
     91|| 3        || Antoneta   || Mariovska || mariovskaantoneta@finki.ukim.mk ||
     92
     93
     94==== DELIVERY ADDRESS
     95
     96||= // client_id =||= // address =||                                                                     
     97|| 1        || st.Partizanska 10, 1000 Skopje  ||
     98|| 2        || st.Turisticka 5,7000 Bitola  ||
     99|| 3        || st.Ilindenska 20, 1000 Skopje   ||
     100
     101
    88102
    89103==== ORDER
    90104
    91 ||=// order_num      =||=// clien_ID =||=// status       =||=// payment    =||=// discount =||
    92 || 0012025000001 || 2        || Delivered    || Cash        || 4        ||
    93 || 0022025000001 || 1        || Placed Order || Credit Card || 0        ||
    94 || 0022025000002 || 1        || Packaging    || PayPal      || 0        ||
    95 || 0012025000002 || 3        || Packaging    || Credit Card || 5        ||
    96 || 0022025000003 || 1        || Placed Order || Credit Card || 2        ||
     105||=// order_num      =||=// client_ID =||=// status       =||=// last_modified =||=// payment_method =||=// discount =||
     106|| 0012025000001 || 2         || Delivered    || 2025-12-02    || Cash           || 0.04        ||
     107|| 0022025000001 || 1         || Placed Order || 2025-12-01    || Credit Card    || 0.00        ||
     108|| 0022025000002 || 1         || Packaging    || 2025-12-10    || PayPal         || 0.00        ||
     109|| 0012025000002 || 3         || Packaging    || 2025-12-12    || Credit Card    || 0.05        ||
     110|| 0022025000003 || 1         || Placed Order || 2025-12-15    || Credit Card    || 0.02        ||
    97111
    98112
     
    107121|| 0022025000003 || 00200002     || 1        ||
    108122
     123==== REPORT
     124
     125||=// store_ID =||=// date       =||=// overall_profit =||=// monthly_profit =||=// sales_trend =||=// marketing_growth =||   owner_signature   ||
     126|| 001   || 2024-11-30 || 125000         || 12500          || Increasing  ||               ||                           ||
     127|| 002   || 2024-11-30 || 98000          || 8000           || Stable      ||               ||     S.Vaneva     ||
     128
     129==== REQUEST
     130
     131||=// request_num   =||=// client_ID =||=// problem            =||=// date_and_time   =||=//  notes_of_communication =||=//  customer_satisfaction =||
     132|| 001112025001 || 2        || Late delivery      ||               ||                 ||              ||
     133|| 002122025001 || 3        || Military discount  ||               ||                 ||              ||
     134|| 003122025001 || 3        || Packaging question ||               ||                 ||              ||
     135|| 004122025001 || 1        || Shipping question  ||               ||                 ||              ||
    109136
    110137==== REVIEW
    111138
    112 ||=// order_num      =||=// rating =||=// comment                     =||
    113 || 0012025000001 || 4.0    || Great quality, slightly late delivery ||
    114 || 0022025000001 || 5.0    || Excellent craftsmanship               ||
    115 || 0022025000002 || 5.0    || Beautiful handmade product            ||
    116 || 0012025000002 || 5.0    || Very satisfied                        ||
    117 || 0022025000003 || 5.0    || Wonderful decoration                  ||
    118 
    119 
    120 ==== REQUEST
    121 
    122 ||=// request_num   =||=// client_ID =||=// problem            =||
    123 || 001112025001 || 2        || Late delivery      ||
    124 || 002122025001 || 3        || Military discount  ||
    125 || 003122025001 || 3        || Packaging question ||
    126 || 004122025001 || 1        || Shipping question  ||
    127 
    128 
    129 ==== REPORT
    130 
    131 ||=// store_ID =||=// date       =||=// overall_profit =||=// monthly_profit =||=// sales_trend =||
    132 || 001   || 2024-11-30 || 125000         || 12500          || Increasing  ||
    133 || 002   || 2024-11-30 || 98000          || 8000           || Stable      ||
     139||=// order_num      =||=// rating =||=// comment                  =||=// last_modified  =||
     140|| 0012025000001 || 4.0    || Great quality, slightly late delivery ||                    ||
     141|| 0022025000001 || 5.0    || Excellent craftsmanship               ||                    ||
     142|| 0022025000002 || 5.0    || Beautiful handmade product            ||                    ||
     143|| 0012025000002 || 5.0    || Very satisfied                        ||                    ||
     144|| 0022025000003 || 5.0    || Wonderful decoration                  ||                    ||
     145
     146==== CHANGE
     147
     148||=// date_and_time   =||=//   product_code  =||=//  changes =||
     149||                     ||                     ||              ||
     150
    134151
    135152
     
    155172A partial dependency occurs when part of a composite primary key determines a non-key attribute.
    156173
    157 
    158 ==== CLIENT
    159 
    160 ||=// client_ID =||=// first_name =||=// last_name =||=// email                         =||=// password =||
    161 || 1         || Ivan       || Stojanov  || ivan@gmail.com                                   || HLUaguhoBJKbjhVjkgKJkjVHK ||
    162 || 2         || Marija     || Kostova   || marija@yahoo.com               || CHVLKDNVJKnkjbkjbjkVKnkNkjbKJ ||
    163 || 3         || Antoneta   || Mariovska || mariovskaantoneta@finki.ukim.mk  || KHkukUhukGUhIKLjLjgukguhLKhukFkHvbH ||
    164 
    165 ==== DELIVERY ADDRESS
    166 
    167 ||=// client_ID =||=// address                   =||
    168 || 1         || st.Partizanska 10, Skopje ||
    169 || 2         || st.Turisticka 5, Bitola   ||
    170 || 3         || st.32 4, s.Cucer-Sandevo  ||
    171 
    172 
    173 ==== STORE
    174 
    175 ||=// store_ID =||=// name             =||= date_founded =||=// address                     =||=// email            =||=// rating =||
    176 || 001      || WoodCraft Skopje || 2015-03-12   || st.Ilindenska 45, Skopje    || contact@woodcraft.mk   || 4.6    ||
    177 || 002      || Fox Crochets     || 2023-06-01   || st.Kej Makedonija 12, Ohrid || ohrid@woodcraft.mk     || 4.8    ||
    178 
    179 
    180174==== PRODUCT
    181175
    182 ||= product_code =||=// price =||=// availability =||=// weight =||=// dimensions =||=// production_time =||=// description                =||=// delivery_cost =||
     176||= product_code =||=// price =||=// availability =||=// weight =||=// dimensions =||=// aprox_production_time =||=// description                =||=// delivery_cost =||
    183177|| 00100001     || 700   || 50           || 2.5    || 30×20×10   || 10             || Handmade wooden chair with oak wood     || 50            ||
    184178|| 00200001     || 150   || 10           || 0.2    || 20×20×15   || 2              || Heart crochet                           || 0             ||
     
    207201|| 00200002     || Orange, Green & Purple ||
    208202
    209 
    210 ==== SELLS
    211 
    212 ||=// store_ID =||=// product_code =||=// discount =||
    213 || 001      || 00100001     || 0        ||
    214 || 002      || 00200001     || 0        ||
    215 || 002      || 00200002     || 0.5      ||
    216 
     203==== STORE
     204
     205||=// store_ID =||=// name             =||= date_of_founding =||=// physical_address                     =||=// store_email            =||=// rating =||
     206|| 001      || WoodCraft Skopje || 2015-03-12   || st.Ilindenska 45, Skopje    || contact@woodcraft.mk   || 4.6    ||
     207|| 002      || Fox Crochets     || 2023-06-01   || st.Kej Makedonija 12, Ohrid || ohrid@woodcraft.mk     || 4.8    ||
     208
     209==== PERSONAL
     210
     211||=// employee_SSN           =||=// first_name =||=// last_name  =||=// email                           =||=// password =||
     212|| 1234567890123 || Marko      || Petrovski  || marko@woodcraft.mk        || BuHuhjgholko8u7T76TVYFgfChHBJHVGHh ||
     213|| 9876543210987 || Antonio    || Trajkovski || antonio@woodcraft.mk      || kgvhjgbJgfHGvHhbhg6777t^%dcGfyR%^G ||
     214|| 4567891234567 || Sara       || Vaneva     || s.vaneva@foxcrochets.mk   || UGUgt&^ghjGFu6tgVfCTYt6VghyT6yvHJg ||
     215
     216
     217==== PERMISSIONS
     218
     219||=// personal_SSN  =||=//type     =||=// authorization =||
     220|| 1234567890123 || Boss     || Admin         ||
     221|| 9876543210987 || Employee || M.Petrovski   ||
     222|| 4567891234567 || Boss     || Admin         ||
     223
     224==== BOSS
     225
     226||=// boss_SSN      =||
     227|| 1234567890123 ||
     228|| 4567891234567 ||
     229
     230==== EMPLOYEE
     231
     232||=// employee_SSN  =||=// date_of_hire =||
     233|| 9876543210987 || 2019-09-01   ||
     234
     235==== CLIENT
     236
     237||=// client_ID =||=// first_name =||=// last_name =||=// email                         =||=// password =||
     238|| 1         || Ivan       || Stojanov  || ivan@gmail.com                                   || HLUaguhoBJKbjhVjkgKJkjVHK ||
     239|| 2         || Marija     || Kostova   || marija@yahoo.com               || CHVLKDNVJKnkjbkjbjkVKnkNkjbKJ ||
     240|| 3         || Antoneta   || Mariovska || mariovskaantoneta@finki.ukim.mk  || KHkukUhukGUhIKLjLjgukguhLKhukFkHvbH ||
     241
     242==== DELIVERY ADDRESS
     243
     244||=// client_ID =||=// address                   =||
     245|| 1         || st.Partizanska 10, Skopje ||
     246|| 2         || st.Turisticka 5, Bitola   ||
     247|| 3         || st.32 4, s.Cucer-Sandevo  ||
    217248
    218249==== ORDER
     
    225256|| 0022025000003 || 1         || Placed Order || 2025-12-15    || Credit Card    || 0.02        ||
    226257
     258==== REPORT
     259
     260||=// date       =||=// store_ID =||=// overall_profit =||=// sales_trend =||=// marketing_growth =||=// signature   =||
     261|| 2024-11-30 || 001   || 125000         || Increasing  || Stable Growth    || M.Petrovski ||
     262|| 2024-11-30 || 002   || 98000          || Stable      || Moderate Growth  || S.Vaneva    ||
     263
     264==== MONTHLY_PROFIT
     265
     266||=// report_date =||=// store_ID =||=// month_and_year   =||=// profit =||
     267|| 2024-11-30  || 001   || Nov 2024 || 12500  ||
     268|| 2024-11-30  || 002   || Nov 2024 || 8000   ||
     269
     270==== REQUEST
     271
     272||=// request_num   =||=// date_and_time       =||=// problem            =||=// notes_of_communication             =||=// satisfaction =||
     273|| 001112025001 || 2024-11-03 || Late delivery      || Discount offered   || 4            ||
     274|| 002122025001 || 2024-12-04 || Military discount  || Approved           || 5            ||
     275|| 003122025001 || 2024-12-10 || Packaging question || Explained shipping || 5            ||
     276|| 004122025001 || 2024-12-16 || Shipping question  || Tracking provided  || 5            ||
     277
     278
     279==== MAKES REQUEST
     280
     281||=// client_ID =||=// request_num   =||
     282|| 2         || 001112025001 ||
     283|| 3         || 002122025001 ||
     284|| 3         || 003122025001 ||
     285|| 1         || 004122025001 ||
     286
     287==== ANSWERS
     288
     289||=// client_ID =||=// request_num   =||
     290|| 2         || 001112025001 ||
     291|| 3         || 002122025001 ||
     292|| 3         || 003122025001 ||
     293|| 1         || 004122025001 ||
     294
     295
     296==== REVIEW
     297
     298||=//  order_num      =||=// comment             =||=// rating =||=// last_modified =||
     299|| 0012025000001 || Great quality, slightly late delivery || 4      || 2024-12-05    ||
     300|| 0022025000001 || Excellent craftsmanship               || 5      || 2025-12-03    ||
     301|| 0022025000002 || Beautiful handmade product            || 5      || 2025-12-11    ||
     302|| 0012025000002 || Very satisfied                        || 5      || 2025-12-14    ||
     303|| 0022025000003 || Wonderful decoration                  || 5      || 2025-12-20    ||
     304
     305==== CHANGE
     306
     307||=// date_and_time   =||=//   product_code  =||=//  changes =||
     308||                     ||                     ||              ||
     309
     310==== WORKS_IN_STORE
     311
     312||=// personal_SSN  =||=// store_ID =||
     313|| 1234567890123 || 001      ||
     314|| 9876543210987 || 001      ||
     315|| 4567891234567 || 002      ||
     316
     317
     318==== WORKED
     319
     320||=// personal_SSN  =||=// report_date =||=// store_ID =||=// wage =||=// pay_method =||=// total_hours =||=// week      =||
     321|| 1234567890123 || 2025-11-30  || 001   || 75   || Hourly     || 48    || 24–30 Nov ||
     322|| 9876543210987 || 2025-11-30  || 001   || 75   || Hourly     || 38    || 24–30 Nov ||
     323|| 4567891234567 || 2025-11-30  || 002   || 450  || Weekly     || 52    || 24–30 Nov ||
     324
     325
     326
     327==== SELLS
     328
     329||=// store_ID =||=// product_code =||=// discount =||
     330|| 001      || 00100001     || 0        ||
     331|| 002      || 00200001     || 0        ||
     332|| 002      || 00200002     || 0.5      ||
    227333
    228334==== INCLUDES
     
    238344
    239345
    240 ==== REVIEW
    241 
    242 ||=//  order_num      =||=// comment             =||=// rating =||=// last_modified =||
    243 || 0012025000001 || Great quality, slightly late delivery || 4      || 2024-12-05    ||
    244 || 0022025000001 || Excellent craftsmanship               || 5      || 2025-12-03    ||
    245 || 0022025000002 || Beautiful handmade product            || 5      || 2025-12-11    ||
    246 || 0012025000002 || Very satisfied                        || 5      || 2025-12-14    ||
    247 || 0022025000003 || Wonderful decoration                  || 5      || 2025-12-20    ||
    248 
    249 ==== PERSONAL
    250 
    251 ||=// employee_SSN           =||=// first_name =||=// last_name  =||=// email                           =||=// password =||
    252 || 1234567890123 || Marko      || Petrovski  || marko@woodcraft.mk        || BuHuhjgholko8u7T76TVYFgfChHBJHVGHh ||
    253 || 9876543210987 || Antonio    || Trajkovski || antonio@woodcraft.mk      || kgvhjgbJgfHGvHhbhg6777t^%dcGfyR%^G ||
    254 || 4567891234567 || Sara       || Vaneva     || s.vaneva@foxcrochets.mk   || UGUgt&^ghjGFu6tgVfCTYt6VghyT6yvHJg ||
    255 
    256 
    257 ==== PERMISSIONS
    258 
    259 ||=// personal_SSN  =||=//type     =||=// authorization =||
    260 || 1234567890123 || Boss     || Admin         ||
    261 || 9876543210987 || Employee || M.Petrovski   ||
    262 || 4567891234567 || Boss     || Admin         ||
    263 
    264 ==== WORKS_IN_STORE
    265 
    266 ||=// personal_SSN  =||=// store_ID =||
    267 || 1234567890123 || 001      ||
    268 || 9876543210987 || 001      ||
    269 || 4567891234567 || 002      ||
    270 
    271 
    272 ==== WORKED
    273 
    274 ||=// personal_SSN  =||=// report_date =||=// store_ID =||=// wage =||=// pay_method =||=// hours =||=// week      =||
    275 || 1234567890123 || 2025-11-30  || 001   || 75   || Hourly     || 48    || 24–30 Nov ||
    276 || 9876543210987 || 2025-11-30  || 001   || 75   || Hourly     || 38    || 24–30 Nov ||
    277 || 4567891234567 || 2025-11-30  || 002   || 450  || Weekly     || 52    || 24–30 Nov ||
    278 
    279 
    280 ==== REPORT
    281 
    282 ||=// date       =||=// store_ID =||=// overall_profit =||=// sales_trend =||=// marketing_growth =||=// signature   =||
    283 || 2024-11-30 || 001   || 125000         || Increasing  || Stable Growth    || M.Petrovski ||
    284 || 2024-11-30 || 002   || 98000          || Stable      || Moderate Growth  || S.Vaneva    ||
    285 
    286 
    287 ==== MONTHLY_PROFIT
    288 
    289 ||=// report_date =||=// store_ID =||=// month    =||=// profit =||
    290 || 2024-11-30  || 001   || Nov 2024 || 12500  ||
    291 || 2024-11-30  || 002   || Nov 2024 || 8000   ||
    292 
    293 
    294 ==== REQUEST
    295 
    296 ||=// request_num   =||=// date       =||=// problem            =||=// notes              =||=// satisfaction =||
    297 || 001112025001 || 2024-11-03 || Late delivery      || Discount offered   || 4            ||
    298 || 002122025001 || 2024-12-04 || Military discount  || Approved           || 5            ||
    299 || 003122025001 || 2024-12-10 || Packaging question || Explained shipping || 5            ||
    300 || 004122025001 || 2024-12-16 || Shipping question  || Tracking provided  || 5            ||
    301 
    302 
    303 ==== MAKES REQUEST
    304 
    305 ||=// client_ID =||=// request_num   =||
    306 || 2         || 001112025001 ||
    307 || 3         || 002122025001 ||
    308 || 3         || 003122025001 ||
    309 || 1         || 004122025001 ||
    310 
    311 
    312 ==== ANSWERS
    313 
    314 ||=// client_ID =||=// request_num   =||
    315 || 2         || 001112025001 ||
    316 || 3         || 002122025001 ||
    317 || 3         || 003122025001 ||
    318 || 1         || 004122025001 ||
    319 
    320 
    321346== Explanation: 1NF -> 2NF
    322347
     
    3683933NF removes these remaining redundancies.
    369394
    370 ==== PERSONAL
    371 
    372 **Primary key: ** employee_SSN
    373 
    374 ||=// employee_SSN    =||=// first_name =||=// last_name  =||=// email             =||=// password =||
    375 || 1234567890123 || Marko      || Petrovski  || marko@woodcraft.mk      || BuHuhjgholko8u7T76TVYFgfChHBJHVGHh ||
    376 || 9876543210987 || Antonio    || Trajkovski || antonio@woodcraft.mk    || kgvhjgbJgfHGvHhbhg6777t^%dcGfyR%^G ||
    377 || 4567891234567 || Sara       || Vaneva     || s.vaneva@foxcrochets.mk || UGUgt&^ghjGFu6tgVfCTYt6VghyT6yvHJg ||
    378 
    379 ==== PERMISSIONS
    380 
    381 **Primary key: ** employee_SSN
    382 
    383 **Forgein key: ** employee_SSN -> PERSONAL
    384 
    385 ||=// personal_SSN  =||=//type     =||=// authorization =||
    386 || 1234567890123 || Boss     || Admin         ||
    387 || 9876543210987 || Employee || M.Petrovski   ||
    388 || 4567891234567 || Boss     || Admin         ||
    389 
    390 
    391 ==== BOSS
    392 
    393 **Primary key: ** boss_SSN
    394 
    395 **Forgein key: ** boss_SSN -> PERSONAL(employee_SSN)
    396 
    397 ||=// boss_SSN      =||
    398 || 1234567890123 ||
    399 || 4567891234567 ||
    400 
    401 ==== EMPLOYEE
    402 
    403 **Primary key: ** employee_SSN
    404 
    405 **Forgein key: ** employee_SSN -> PERSONAL
    406 
    407 ||=// employee_SSN  =||=// date_of_hire =||
    408 || 9876543210987 || 2019-09-01   ||
    409 
    410 ==== STORE
    411 
    412 ||=// store_ID =||=// name             =||= date_founded =||=// address                     =||=// email            =||=// rating =||
    413 || 001      || WoodCraft Skopje || 2015-03-12   || st.Ilindenska 45, Skopje    || contact@woodcraft.mk   || 4.6    ||
    414 || 002      || Fox Crochets     || 2023-06-01   || st.Kej Makedonija 12, Ohrid || ohrid@woodcraft.mk     || 4.8    ||
    415 
    416 ==== WORKS_IN_STORE
    417 
    418 ||=// personal_SSN  =||=// store_ID =||
    419 || 1234567890123 || 001      ||
    420 || 9876543210987 || 001      ||
    421 || 4567891234567 || 002      ||
    422 
    423395==== PRODUCT
    424396
    425 ||= product_code =||=// price =||=// availability =||=// weight =||=// dimensions =||=// production_time =||=// description                =||=// delivery_cost =||
     397||= product_code =||=// price =||=// availability =||=// weight =||=// dimensions =||=// aprox_production_time =||=// description                =||=// delivery_cost =||
    426398|| 00100001     || 700   || 50           || 2.5    || 30×20×10   || 10             || Handmade wooden chair with oak wood     || 50            ||
    427399|| 00200001     || 150   || 10           || 0.2    || 20×20×15   || 2              || Heart crochet                           || 0             ||
     
    449421|| 00200002     || Orange, Green & Purple ||
    450422
    451 
    452 ==== SELLS
    453 
    454 ||=// store_ID =||=// product_code =||=// discount =||
    455 || 001      || 00100001     || 0        ||
    456 || 002      || 00200001     || 0        ||
    457 || 002      || 00200002     || 0.5      ||
    458 
     423==== STORE
     424
     425||=// store_ID =||=// name             =||= date_of_founding =||=// physical_address                     =||=// store_email            =||=// rating =||
     426|| 001      || WoodCraft Skopje || 2015-03-12   || st.Ilindenska 45, Skopje    || contact@woodcraft.mk   || 4.6    ||
     427|| 002      || Fox Crochets     || 2023-06-01   || st.Kej Makedonija 12, Ohrid || ohrid@woodcraft.mk     || 4.8    ||
     428
     429==== PERSONAL
     430
     431||=// employee_SSN    =||=// first_name =||=// last_name  =||=// email             =||=// password =||
     432|| 1234567890123 || Marko      || Petrovski  || marko@woodcraft.mk      || BuHuhjgholko8u7T76TVYFgfChHBJHVGHh ||
     433|| 9876543210987 || Antonio    || Trajkovski || antonio@woodcraft.mk    || kgvhjgbJgfHGvHhbhg6777t^%dcGfyR%^G ||
     434|| 4567891234567 || Sara       || Vaneva     || s.vaneva@foxcrochets.mk || UGUgt&^ghjGFu6tgVfCTYt6VghyT6yvHJg ||
     435
     436==== PERMISSIONS
     437
     438||=// personal_SSN  =||=//type     =||=// authorization =||
     439|| 1234567890123 || Boss     || Admin         ||
     440|| 9876543210987 || Employee || M.Petrovski   ||
     441|| 4567891234567 || Boss     || Admin         ||
     442
     443
     444==== BOSS
     445
     446||=// boss_SSN      =||
     447|| 1234567890123 ||
     448|| 4567891234567 ||
     449
     450==== EMPLOYEE
     451
     452||=// employee_SSN  =||=// date_of_hire =||
     453|| 9876543210987 || 2019-09-01   ||
    459454
    460455==== CLIENT
     
    481476|| 0022025000003 || 1         || Placed Order || 2025-12-15    || Credit Card    || 0.02        ||
    482477
     478==== REPORT
     479
     480||=// date       =||=// store_ID =||=// overall_profit =||=// sales_trend =||=// marketing_growth =||=// owner_signature   =||
     481|| 2024-11-30 || 001   || 125000         || Increasing  || Stable Growth    || M.Petrovski ||
     482|| 2024-11-30 || 002   || 98000          || Stable      || Moderate Growth  || S.Vaneva    ||
     483
     484==== MONTHLY_PROFIT
     485
     486||=// report_date =||=// store_ID =||=// month_and_year    =||=// profit =||
     487|| 2024-11-30  || 001   || Nov 2024 || 12500  ||
     488|| 2024-11-30  || 002   || Nov 2024 || 8000   ||
     489
     490==== REQUEST
     491
     492||=// request_num   =||=// date_and_time      =||=// problem            =||=// notes_of_communication              =||=// customer_satisfaction =||
     493|| 001112025001 || 2024-11-03 || Late delivery      || Discount offered   || 4            ||
     494|| 002122025001 || 2024-12-04 || Military discount  || Approved           || 5            ||
     495|| 003122025001 || 2024-12-10 || Packaging question || Explained shipping || 5            ||
     496|| 004122025001 || 2024-12-16 || Shipping question  || Tracking provided  || 5            ||
     497
     498==== MAKES REQUEST
     499
     500||=// client_ID =||=// request_num   =||
     501|| 2         || 001112025001 ||
     502|| 3         || 002122025001 ||
     503|| 3         || 003122025001 ||
     504|| 1         || 004122025001 ||
     505
     506==== ANSWERS
     507
     508||=// client_ID =||=// request_num   =||
     509|| 2         || 001112025001 ||
     510|| 3         || 002122025001 ||
     511|| 3         || 003122025001 ||
     512|| 1         || 004122025001 ||
     513
     514==== REQUEST_FOR_STORE
     515
     516||=// request_number =||=// store_ID =||
     517|| 001112025001   || 001      ||
     518|| 002122025001   || 002      ||
     519
     520==== REVIEW
     521
     522||=//  order_num      =||=// comment             =||=// rating =||=// last_modified =||
     523|| 0012025000001 || Great quality, slightly late delivery || 4      || 2024-12-05    ||
     524|| 0022025000001 || Excellent craftsmanship               || 5      || 2025-12-03    ||
     525|| 0022025000002 || Beautiful handmade product            || 5      || 2025-12-11    ||
     526|| 0012025000002 || Very satisfied                        || 5      || 2025-12-14    ||
     527|| 0022025000003 || Wonderful decoration                  || 5      || 2025-12-20    ||
     528
     529==== CHANGE
     530
     531||=// date_and_time   =||=//   product_code  =||=//  changes =||
     532||                     ||                     ||              ||
     533
     534==== WORKS_IN_STORE
     535
     536||=// personal_SSN  =||=// store_ID =||
     537|| 1234567890123 || 001      ||
     538|| 9876543210987 || 001      ||
     539|| 4567891234567 || 002      ||
     540
     541==== WORKED
     542
     543||=// personal_SSN  =||=// report_date =||=// store_ID =||=// wage =||=// pay_method =||=// total_hours =||=// week      =||
     544|| 1234567890123 || 2025-11-30  || 001   || 75   || Hourly     || 48    || 24–30 Nov ||
     545|| 9876543210987 || 2025-11-30  || 001   || 75   || Hourly     || 38    || 24–30 Nov ||
     546|| 4567891234567 || 2025-11-30  || 002   || 450  || Weekly     || 52    || 24–30 Nov ||
     547
     548
     549==== SELLS
     550
     551||=// store_ID =||=// product_code =||=// discount =||
     552|| 001      || 00100001     || 0.0        ||
     553|| 002      || 00200001     || 0.0        ||
     554|| 002      || 00200002     || 0.5        ||
    483555
    484556==== INCLUDES
     
    493565
    494566
    495 ==== REVIEW
    496 
    497 ||=//  order_num      =||=// comment             =||=// rating =||=// last_modified =||
    498 || 0012025000001 || Great quality, slightly late delivery || 4      || 2024-12-05    ||
    499 || 0022025000001 || Excellent craftsmanship               || 5      || 2025-12-03    ||
    500 || 0022025000002 || Beautiful handmade product            || 5      || 2025-12-11    ||
    501 || 0012025000002 || Very satisfied                        || 5      || 2025-12-14    ||
    502 || 0022025000003 || Wonderful decoration                  || 5      || 2025-12-20    ||
    503 
    504 
    505 ==== REQUEST
    506 
    507 ||=// request_num   =||=// date       =||=// problem            =||=// notes              =||=// satisfaction =||
    508 || 001112025001 || 2024-11-03 || Late delivery      || Discount offered   || 4            ||
    509 || 002122025001 || 2024-12-04 || Military discount  || Approved           || 5            ||
    510 || 003122025001 || 2024-12-10 || Packaging question || Explained shipping || 5            ||
    511 || 004122025001 || 2024-12-16 || Shipping question  || Tracking provided  || 5            ||
    512 
    513 
    514 ==== MAKES REQUEST
    515 
    516 ||=// client_ID =||=// request_num   =||
    517 || 2         || 001112025001 ||
    518 || 3         || 002122025001 ||
    519 || 3         || 003122025001 ||
    520 || 1         || 004122025001 ||
    521 
    522 
    523 ==== ANSWERS
    524 
    525 ||=// client_ID =||=// request_num   =||
    526 || 2         || 001112025001 ||
    527 || 3         || 002122025001 ||
    528 || 3         || 003122025001 ||
    529 || 1         || 004122025001 ||
    530 
    531 
    532 ==== REQUEST_FOR_STORE
    533 
    534 ||=// request_number =||=// store_ID =||
    535 || 001112025001   || 001      ||
    536 || 002122025001   || 002      ||
    537 
    538 Instead of storing store information inside REQUEST, a relationship table is used.
    539 
    540 ==== REPORT
    541 
    542 ||=// date       =||=// store_ID =||=// overall_profit =||=// sales_trend =||=// marketing_growth =||=// signature   =||
    543 || 2024-11-30 || 001   || 125000         || Increasing  || Stable Growth    || M.Petrovski ||
    544 || 2024-11-30 || 002   || 98000          || Stable      || Moderate Growth  || S.Vaneva    ||
    545 
    546 
    547 ==== MONTHLY_PROFIT
    548 
    549 ||=// report_date =||=// store_ID =||=// month    =||=// profit =||
    550 || 2024-11-30  || 001   || Nov 2024 || 12500  ||
    551 || 2024-11-30  || 002   || Nov 2024 || 8000   ||
    552 
    553 ==== WORKED
    554 
    555 ||=// personal_SSN  =||=// report_date =||=// store_ID =||=// wage =||=// pay_method =||=// hours =||=// week      =||
    556 || 1234567890123 || 2025-11-30  || 001   || 75   || Hourly     || 48    || 24–30 Nov ||
    557 || 9876543210987 || 2025-11-30  || 001   || 75   || Hourly     || 38    || 24–30 Nov ||
    558 || 4567891234567 || 2025-11-30  || 002   || 450  || Weekly     || 52    || 24–30 Nov ||
    559 
    560567==== APPROVES
    561568
    562 ||=// boss_SSN      =||=// report_date =||=// store_ID =||=// signature   =||
     569||=// boss_SSN      =||=// report_date =||=// store_ID =||=// owner_signature   =||
    563570|| 1234567890123 || 2025-12-01  || 001      || M.Petrovski ||
    564571|| 4567891234567 || 2025-12-03  || 002      || S.Vaneva    ||
     
    568575==== STORE_MONTHLY_DATA
    569576
    570 ||=// report_date =||=// store_ID =||=// monthly_profit =||=// date       =||=// sales =||=// samages |
     577||=// report_date =||=// store_ID =||=// monthly_profit =||=// date       =||=// sales =||=// damages |
    571578|| 2024-11-30  || 001      || 38750          || 2024-12-01 || 52    || 750     ||
    572579|| 2024-11-30  || 002      || 26150          || 2024-12-01 || 40    || NULL    ||