Changes between Version 5 and Version 6 of ConceptualModel


Ignore:
Timestamp:
05/05/26 02:29:46 (11 hours ago)
Author:
181201
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ConceptualModel

    v5 v6  
    4242
    4343----
     44
     45{{{PetOwner}}}
     46
     47Subtype/specialization of {{{User}}} entity. Inherits from {{{User}}}. Is able to make bookings for their {{{Pet}}} and request a {{{PetSitter}}}.
     48
     49'''Candidate keys:'''
     50* {{{user_id}}} - Inherits {{{user_id}}} from {{{User}}}
     51
     52'''Attributes:'''
     53
     54* Inherits all attributes from {{{User}}}
     55
     56----
     57
     58{{{PetSitter}}}
     59
     60Subtype/specialization of {{{User}}} entity. Inherits from {{{User}}}. Provides services to {{{PetOwner}}}. Is able to confirm or deny bookings.
     61
     62'''Candidate keys:'''
     63* {{{user_id}}} - Inherits {{{user_id}}} from {{{User}}}
     64
     65'''Attributes:'''
     66
     67* Inherits all attributes from {{{User}}}
     68
     69----
     70
     71{{{Pet}}}
     72
     73The animal that will be taken care of. Track the identity, special needs, age of the pet in the booking. Linked to {{{PetType}}} to categorize animals more efficiently.
     74
     75'''Candidate keys:'''
     76* {{{pet_id}}} - '''Primary key'''; Unique surrogate key.
     77
     78'''Attributes:'''
     79
     80* {{{pet_id}}} - Numeric (Required, Unique, Auto-generated integer).
     81
     82* {{{name}}} - Text (Required).
     83
     84* {{{photo}}} - Text/URL (Optional, URL format).
     85
     86* {{{age}}} - Numeric (Required, non-negative integer).
     87
     88* {{{password}}} - Text (Required, Hashed format, Min. 8 characters).
     89
     90* {{{special_needs}}} - Text (Optional).
     91
     92* {{{description}}} - Text (Optional).
     93
     94----
     95
     96{{{PetType}}}
     97
     98Entity used to categorize pets (for example Cat, Dog, Rabbit, Bird). Used for storing attributes that would repeat a lot of times in one single {{{Pet}}} entity.
     99
     100'''Candidate keys:'''
     101* {{{pet_id}}} - '''Primary key'''; Unique surrogate key.
     102* {{{species}}} - Unique but not as efficient as a numeric id key.
     103
     104'''Attributes:'''
     105
     106* {{{pettype_id}}} - Numeric (Required, Unique, Auto-generated integer).
     107
     108* {{{species}}} - Text (Required, Unique).
     109
     110* {{{average_lifespan}}} - Numeric (Optional).
     111
     112* {{{needs_outdoor_walk}}} - Boolean (Required, 0 or 1).
     113
     114
     115----
     116
     117{{{Booking}}}
     118
     119The entity that connects {{{PetOwner}}}, {{{PetSitter}}}, {{{Pet}}} and the services requested for the {{{Pet}}}
     120
     121'''Candidate keys:'''
     122* {{{booking_id}}} - '''Primary key'''; Unique surrogate key.
     123
     124'''Attributes:'''
     125
     126* {{{booking_id}}} - Numeric (Required, Unique, Auto-generated integer).
     127
     128* {{{status}}} - Text (Required, for example 'Pending', 'Confirmed', 'Completed', 'Rejected').
     129
     130* {{{date_from}}} - Date (Required).
     131
     132* {{{date_to}}} - Date (Required).
     133
     134* {{{address}}} - Text (Required, location of the service).