Changes between Initial Version and Version 1 of RelationalSchema


Ignore:
Timestamp:
01/05/25 20:01:46 (10 days ago)
Author:
221128
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalSchema

    v1 v1  
     1
     2
     3== Relational Mapping - Partial Transformation 
     4=== Notations 
     5* Primary keys are marked with **__bold and underlined letters__** \\   
     6* Foreign keys are marked with *
     7=== Relational Schema
     81. User(**__id__**, email, street, city, phone_number, password) 
     92. Employee(**__user_id__***, net_salary, gross_salary) 
     103. Customer(**__user_id__***) 
     114. Manager(**__user_id__***) 
     125. FrontStaff(**__employee_id__***, tip_percent, staff_role_id*) 
     136. BackStaff(**__employee_id__***, staff_role_id*) 
     147. StaffRole(**__staff_role_id__**, name) 
     158. Shift(**__shift_id__**, date, start, end, manager_id*) 
     169. Assignment(**__id__**, clock_in_time, clock_out_time, manager_id*, employee_id*, shift_id*) 
     17
     1810. Reservation(**__id__**, stay_length, datetime, creation_timestamp, number_of_people, user_id*) 
     1911. Reservation_managed_FrontStaff(**__reservation_id__***, **__employee_id__***, **__table_number__***) 
     20
     2112. Category(**__id__**, name, is_available) 
     2213. Product(**__id__**, name, price, tax_class, description, manage_inventory, category_id*) 
     2314. Inventory(**__product_id__***, quantity, restock_level) 
     2415. OrderItem(**__id__**, quantity, price, is_processed, timestamp, product_id*, order_id*) 
     25
     2616. Order(**__id__**, timestamp, status) 
     2717. TabOrder(**__order_id__***, table_number*, frontstaff_id*) 
     2818. OnlineOrder(**__order_id__***, **__customer_id__***, delivery_adress) 
     2919. Table(**__table_number__**, seat_capacity) 
     3020. Payment(**__id__**, tip_amount, timestamp, payment_type, amount, order_id*) 
     31
     32== DDL Script for Dropping and Creating Tables
     33[attachment:​ddl (1).sql​]
     34== DML Script for Populating Tables with Data
     35[attachment:dml (1).sql​]
     36== Tables
     37[[Image(schema1.png)]]