Changes between Version 1 and Version 2 of RelationalDesign
- Timestamp:
- 08/27/26 23:41:35 (5 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v1 v2 23 23 SERVICES (__'''service_id'''__, '''type''', description) 24 24 25 BOOKINGS (__'''booking_id'''__, '''status''', '''date_from''', '''date_to''', '''address''', '''owner_id'''*, '''sitter_id'''* )25 BOOKINGS (__'''booking_id'''__, '''status''', '''date_from''', '''date_to''', '''address''', '''owner_id'''*, '''sitter_id'''*, '''service_id'''*) 26 26 27 27 REVIEWS (__'''review_id'''__, '''rating''', comment, '''booking_id'''*) … … 35 35 SITTER_SERVICES (__'''sitter_id'''__*, __'''service_id'''__*) 36 36 37 BOOKING_SERVICES (__'''booking_id'''__*, __'''service_id'''__*)38 39 37 == DDL script for creating the database schema and objects: 40 38 [attachment:schema_creation.sql] … … 45 43 == Relational diagram 46 44 [[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
