Changes between Version 2 and Version 3 of RelationalDesign


Ignore:
Timestamp:
02/05/26 14:21:35 (3 weeks ago)
Author:
202033
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v2 v3  
    1212Status (__**status_id**__, **name**)
    1313
    14 Service (__**service_id**__, **name**, **price**, **duration_minutes**, category_id*(Category))
     14Service (__**service_id**__, **name**, **price**, **duration_minutes**, **category_id*(Category)**)
    1515
    1616Package (__**package_id**__, **name**, **max_usage**)
    1717
    18 Review (__**review_id**__, rating, comment, created_at, payment_id*(Payment) UNIQUE)
     18Review (__**review_id**__, rating, comment, created_at, **payment_id*(Payment) UNIQUE**)
    1919
    20 Appointment (__**appointment_id**__, **appointment_time**, **end_time**, notes, **type enum('pre-booked','walk-in')**, **total_price**, user_id*(User), status_id*(Status))
     20Appointment (__**appointment_id**__, **appointment_time**, **end_time**, notes, **type enum('pre-booked','walk-in')**, **total_price**, **user_id*(User)**, **status_id*(Status)**)
    2121
    2222LoyaltyCard (__**card_id**__, **points**, user_id*(User))
    2323
    24 Payment (__**payment_id**__, **amount**, **method**, **timestamp**, **status**, appointment_id*(Appointment))
     24Payment (__**payment_id**__, **amount**, **method**, **timestamp**, **status**, **appointment_id*(Appointment)**)
    2525
    2626UserRole (__**user_id*(User)**__, __**role_id*(Role)**__)