1 | | == Relational Design |
| 1 | = Логички и физички дизајн |
| 2 | |
| 3 | == Релациска шема (со мапирачка трансформација) |
| 4 | |
| 5 | • Примарни клучеви - bold и underline |
| 6 | • Надворешни клучеви: bold и * до името на надворешниот клуч, во заграда табелата кон која покажува |
| 7 | • Останати атрибути: bold |
| 8 | |
| 9 | |
| 10 | |
| 11 | ---- |
| 12 | |
| 13 | |
| 14 | ''User''(**__user_id__, name, surname, email, username, password**) |
| 15 | |
| 16 | ''Client''(**__client_number_id__**) |
| 17 | |
| 18 | ''Shipping_employee''(**__shipping_employee_id__**) |
| 19 | |
| 20 | ''Role''(**__id_role__**, **role_name, role_desc**) |
| 21 | |
| 22 | ''Online_stores''(**__store_id__, name, web_address, phone_number, email, social_media**) |
| 23 | |
| 24 | ''Shipping''(**__shipping_id__, location, date_from, date_to**) |
| 25 | |
| 26 | ''Payment''(**__payment_id__, info**) |
| 27 | |
| 28 | ''Category''(**__category_id__, category_name**) |
| 29 | |
| 30 | ''Store_employee''(**__store_employee_id__**, store_id*(online_stores)) |
| 31 | |
| 32 | ''Catalogue''(**__catalogue_id__, catalogue_from, catalogue_to, type**, store_id*(online_stores)) |
| 33 | |
| 34 | ''Shopping_bag''(**__shopping_id__, order_date, shipping_date, modified,client_number_id***(client)) |
| 35 | |
| 36 | ''Product_in_store''(**__product_in_store_id__**, store_id*(online_stores), product_id*(product)) |
| 37 | |
| 38 | ''Product''(**__product_id__, name, in_store, size, color**, category_id*(category)) |
| 39 | |
| 40 | ''Price''(**__price_id__, price, price_from, price_to, product_in_store_id***(product_in_store)) |
| 41 | |
| 42 | ''Works_as''(**__id_role*__**(role), **__store_employee_id*__**(store_employee), **works_from**, **works_to**) |
| 43 | |
| 44 | ''Carries''(**__shipping_employee_id*__**(shipping_employee), **__shipping_id*__**(shipping)) |
| 45 | |
| 46 | ''Exists''(**__catalogue_id*__**(catalogue),**__product_in_store_id*__**(product_in_store)) |
| 47 | |
| 48 | ''Order''(**__shopping_id*__**(shopping_bag), **__product_in_store_id*__**(product_in_store)) |