wiki:LogicalPhysicalDesign

Version 2 (modified by 221296, 6 days ago) ( diff )

--

Relational Design for OPLMS

Notation

  • Primary keys are bolded and underlined.
  • Foreign keys are marked with * at the end of their name and the referenced entity is written in parentheses.
  • Complex attributes are bolded, and their containing attributes are following the, made italic.
  • Multivalued attributes have their own table

Tables

  1. USER (User_ID, First_Name, last_Name, Email, Password))
    • image (multi-valued attribute, see table COLORS)
    • color (multi-valued attribute, see table IMAGE)
  1. IMAGE (product_code* (PRODUCT), image)
  1. COLOR (product_code* (PRODUCT), color)
  1. STORE (store_ID, name, date_of_founding, physical_address, store_email, rating)
  1. PERSONAL (SSN, name, first_name, last_name, email, password)
    • permissions (complex, multi-valued attribute, see table PERMISSIONS)
  1. PERMISSIONS (personal_SSN* (PERSONAL), type, authorisation)
  1. BOSS (boss_SSN* (PERSONAL))
  1. EMPLOYEES (employee_SSN* (PERSONAL), date_of_hire)
  1. CLIENT (client_ID, name, first_name, last_name, email, password)
    • delivery_address (multi-valued attribute, see table DELIVERY_ADDRESS)
  1. DELIVERY_ADDRESS (client_ID (CLIENT), address)
  1. ORDER (order_num,client_ID* (CLIENT), quantity, status, last_date_mod, payment_method, discount)
  1. REPORT (date, store_ID* (STORE), overall_profit, sales_trend, marketing_growth, owner_signature)
    • monthly_profit (multi-valued attribute, see table MONTHLY_PROFIT)
  1. MONTHLY_PROFIT (report_date* (REPORT), store_ID* (REPORT), month_and_year, profit)
  1. REQUEST (request_num, date_and_time, problem, notes_of_communication, costumer_satisfaction)

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

DDL скрипта

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

DML скрипта

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

No image "DBeaverExportVer2.png" attached to LogicalPhysicalDesign

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.