wiki:RelationalDesign

Логички и физички дизајн

Релациска шема (со мапирачка трансформација)

  • Примарни клучеви - bold и underline
  • Надворешни клучеви: bold и * до името на надворешниот клуч, во заграда табелата кон која покажува
  • Останати атрибути: bold

User(user_id, name, surname, email, username, password)

Client(user_id*(user), client_number_id)

Shipping_employee(user_id*(user), shipping_employee_id)

Role(id_role, role_name, role_desc)

Online_stores(store_id, name, web_address, phone_number, email, social_media)

Payment(payment_id, info)

Shipping(shipping_id, location, date_from, date_to, user_id*(shipping_employee), shopping_id*(shopping_bag))

Category(category_id, category_name)

Store_employee(user_id*(user), store_employee_id, store_id*(online_stores))

Catalogue(catalogue_id, catalogue_from, catalogue_to, type, store_id*(online_stores))

Shopping_bag(shopping_id, order_date, shipping_date, modified, user_id*(client))

Product_in_store(product_in_store_id, store_id*(online_stores), product_id*(product))

Product(product_id, name, in_store, size, color, category_id*(category))

Price(price_id, price, price_from, price_to, product_in_store_id*(product_in_store))

Works_as(id_role*(role), store_employee_id*(store_employee), works_from, works_to)

Exists(catalogue_id,store_id*(catalogue), product_in_store_id*(product_in_store))

Order(shopping_id*(shopping_bag), product_in_store_id,price_id* (price),amount)

DDL скрипта за бришење и креирање на табелите

kreiranje.sql

DML скрипта за полнење на табелите со податоци

polnenje.sql

Релациски дијаграм изведен од DBeaver

Last modified 2 years ago Last modified on 12/22/21 11:24:36

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.