| Version 2 (modified by , 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
- USER (User_ID, First_Name, last_Name, Email, Password))
- image (multi-valued attribute, see table COLORS)
- color (multi-valued attribute, see table IMAGE)
- IMAGE (
product_code*(PRODUCT),image)
- COLOR (
product_code*(PRODUCT),color)
- STORE (
store_ID,name,date_of_founding,physical_address,store_email,rating)
- PERSONAL (
SSN,name,first_name,last_name,email,password)- permissions (complex, multi-valued attribute, see table PERMISSIONS)
- PERMISSIONS (
personal_SSN*(PERSONAL),type,authorisation)
- BOSS (
boss_SSN*(PERSONAL))
- EMPLOYEES (
employee_SSN*(PERSONAL),date_of_hire)
- CLIENT (
client_ID,name,first_name,last_name,email,password)- delivery_address (multi-valued attribute, see table DELIVERY_ADDRESS)
- DELIVERY_ADDRESS (
client_ID(CLIENT),address)
- ORDER (
order_num,client_ID*(CLIENT),quantity,status,last_date_mod,payment_method,discount)
- REPORT (
date,store_ID*(STORE),overall_profit,sales_trend,marketing_growth,owner_signature)- monthly_profit (multi-valued attribute, see table MONTHLY_PROFIT)
- MONTHLY_PROFIT (
report_date*(REPORT),store_ID*(REPORT),month_and_year,profit)
- REQUEST (
request_num,date_and_time,problem,notes_of_communication,costumer_satisfaction)
DDL скрипта за креирање и бришење на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм изваден од DBeaver
Attachments (3)
- OPLMS--DML.sql (3.3 KB ) - added by 4 days ago.
- OPLMS-create-DDL.sql (3.7 KB ) - added by 3 days ago.
- OPLMS.png (240.5 KB ) - added by 3 days ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.
