Changes between Version 1 and Version 2 of RelationalDesign


Ignore:
Timestamp:
08/27/26 23:41:35 (5 days ago)
Author:
181201
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v1 v2  
    2323SERVICES (__'''service_id'''__, '''type''', description)
    2424
    25 BOOKINGS (__'''booking_id'''__, '''status''', '''date_from''', '''date_to''', '''address''', '''owner_id'''*, '''sitter_id'''*)
     25BOOKINGS (__'''booking_id'''__, '''status''', '''date_from''', '''date_to''', '''address''', '''owner_id'''*, '''sitter_id'''*, '''service_id'''*)
    2626
    2727REVIEWS (__'''review_id'''__, '''rating''', comment, '''booking_id'''*)
     
    3535SITTER_SERVICES (__'''sitter_id'''__*, __'''service_id'''__*)
    3636
    37 BOOKING_SERVICES (__'''booking_id'''__*, __'''service_id'''__*)
    38 
    3937== DDL script for creating the database schema and objects:
    4038[attachment:schema_creation.sql]
     
    4543== Relational diagram
    4644[[Image(relational_schema.png)]]
     45
     46== Version history
     47
     48[https://develop.finki.ukim.mk/projects/petsitter/wiki/RelationalDesign_v01 v01]
     49* Initial version
     50
     51[https://develop.finki.ukim.mk/projects/petsitter/wiki/RelationalDesign v02]
     52* Current version; based on version [https://develop.finki.ukim.mk/projects/petsitter/wiki/ERModel v03] of the ER model
     53* Added the '''service_id''' foreign key to the '''BOOKINGS''' table, declared as `NOT NULL` since every booking requires exactly one service
     54* Removed the '''BOOKING_SERVICES''' table; not needed because '''requires''' relation is N:1
     55* Updated `schema_creation.sql` and `data_load.sql` accordingly