Changes between Version 1 and Version 2 of LogicalAndPhysicalDesign


Ignore:
Timestamp:
05/07/26 17:43:51 (3 hours ago)
Author:
181201
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LogicalAndPhysicalDesign

    v1 v2  
    22
    33== Notation
    4 [[Image(ERModel_v02.jpg)]]
     4
     5 * Primary Key - '''bold''' and __underline__
     6 * Required/`NOT NULL` - '''bold'''
     7 * Foreign Key - Asterisk ( * )
     8 * Optional (nullable) attributes - regular characters
    59
    610== Tables
     11USERS (__'''user_id'''__, '''username''', '''first_name''', '''last_name''', '''password''', '''email''')
    712
    8 == Entities
     13ADMINS (__'''user_id'''__*)
     14
     15PET_OWNERS (__'''user_id'''__*)
     16
     17PET_SITTERS (__'''user_id'''__*)
     18
     19PET_TYPES (__'''pettype_id'''__, '''species''', average_lifespan, '''needs_outdoor_walk''')
     20
     21PETS (__'''pet_id'''__, '''name''', photo, '''age''', special_needs, description, '''owner_id'''*, '''pettype_id'''*)
     22
     23SERVICES (__'''service_id'''__, '''type''', description)
     24
     25BOOKINGS (__'''booking_id'''__, '''status''', '''date_from''', '''date_to''', '''address''', '''owner_id'''*, '''sitter_id'''*)
     26
     27REVIEWS (__'''review_id'''__, '''rating''', comment, '''booking_id'''*)
     28
     29PAYMENTS (__'''payment_id'''__, '''amount''', '''payment_type''', '''booking_id'''*)
     30
     31ADMIN_MANAGEMENT (__'''admin_id'''__*, __'''user_id'''__*)
     32
     33BOOKING_PETS (__'''booking_id'''__*, __'''pet_id'''__*)
     34
     35SITTER_SERVICES (__'''sitter_id'''__*, __'''service_id'''__*)
     36
     37BOOKING_SERVICES (__'''booking_id'''__*, __'''service_id'''__*)
    938
    1039== DDL script for creating the database schema and objects:
     40[attachment:schema_creation.sql]
    1141
    1242== DML script for filling tables with data:
     43[attachment:data_load.sql]
     44
     45== Relational diagram
     46[[Image(relational_schema.png)]]