wiki:RelationalDesign

Version 5 (modified by 193230, 3 years ago) ( diff )

--

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

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

  • Примарни клучеви - 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)

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

Payment(payment_id, info)

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), product_in_store_id*(product_in_store))

Shopping_bag(shopping_id, order_date, shipping_date, modified, client_number_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*(catalogue),product_in_store_id*(product_in_store))

Order(shopping_id*(shopping_bag), product_in_store_id*(product_in_store))

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.