Changes between Version 11 and Version 12 of ERModel


Ignore:
Timestamp:
02/04/26 19:33:38 (5 days ago)
Author:
193284
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ERModel

    v11 v12  
    77
    88== Diagram
    9 [[Image(wedding_planner_version5.png, width=100%)]]
     9[[Image(Wedding_Planner_Verison5.png, width=100%)]]
    1010
    1111== Data requirements
     
    1717
    1818Candidate keys:
     19
    1920user_id – selected as the primary key because it is system-generated, stable, and unique
     21
    2022email – candidate key because it is unique per user, but not chosen as primary since it may change
    2123
    2224Attributes:
     25
    2326user_id – numeric, required
     27
    2428first_name – text, required
     29
    2530last_name – text, required
     31
    2632email – text, required, valid email format
     33
    2734phone_number – text, optional
     35
    2836gender – text, optional
     37
    2938birthday – date, optional
    3039
     
    3544
    3645Candidate keys:
     46
    3747wedding_id – selected as the primary key as a unique system-generated identifier
    3848
    3949Attributes:
     50
    4051wedding_id – numeric, required
    41 date – date, required
     52
     53date – date, required
     54
    4255budget – numeric, optional
     56
    4357notes – text, optional
     58
    4459type – text, optional
     60
    4561status – text, optional
    4662
     
    5167
    5268Candidate keys:
     69
    5370event_id – selected as the primary key because it uniquely identifies each event
    5471
    5572Attributes:
     73
    5674event_id – numeric, required
     75
    5776event_type – text, required
    58 date – date, required
     77
     78date – date, required
     79
    5980start_time – time, required
     81
    6082end_time – time, required
     83
    6184status – text, required
    6285
     
    6790
    6891Candidate keys:
     92
    6993response_id – selected as the primary key because it uniquely identifies each RSVP record
    7094
    7195Attributes:
     96
    7297response_id – numeric, required
    73 status – text, required
     98
     99status – text, required
     100
    74101response_date – date, required
    75102
     
    80107
    81108Candidate keys:
     109
    82110guest_id – selected as the primary key
    83111
    84112Attributes:
     113
    85114guest_id – numeric, required
     115
    86116first_name – text, required
     117
    87118last_name – text, required
     119
    88120email – text, optional
    89121
     
    94126
    95127Candidate keys:
     128
    96129attendance_id – selected as the primary key
    97130
    98131Attributes:
     132
    99133attendance_id – numeric, required
    100 status – text, required
     134
     135status – text, required
     136
    101137table_number – numeric, optional
     138
    102139role – text, required
    103140
     
    108145
    109146Candidate keys:
     147
    110148venue_id – selected as the primary key
    111149
    112150Attributes:
     151
    113152venue_id – numeric, required
     153
    114154name – text, required
     155
    115156location – text, required
     157
    116158city – text, required
     159
    117160address – text, required
     161
    118162capacity – numeric, required
     163
    119164menu – text, optional
     165
    120166phone_number – text, optional
     167
    121168price_per_guest – numeric, required
    122169
     
    127174
    128175Candidate keys:
     176
    129177type_id – selected as the primary key
    130178
    131179Attributes:
     180
    132181type_id – numeric, required
     182
    133183type_name – text, required
    134184
     
    139189
    140190Candidate keys:
     191
    141192booking_id – selected as the primary key
    142193
    143194Attributes:
     195
    144196booking_id – numeric, required
    145 date – date, required
     197
     198date – date, required
     199
    146200start_time – time, required
     201
    147202end_time – time, required
    148 status – text, required
     203
     204status – text, required
     205
    149206price – numeric, required
    150207
     
    155212
    156213Candidate keys:
     214
    157215photographer_id – selected as the primary key
    158216
    159217Attributes:
     218
    160219photographer_id – numeric, required
     220
    161221name – text, required
     222
    162223email – text, required
     224
    163225phone_number – text, required
     226
    164227price_per_hour – numeric, required
    165228
     
    170233
    171234Candidate keys:
     235
    172236booking_id – selected as the primary key
    173237
    174238Attributes:
     239
    175240booking_id – numeric, required
    176 date – date, required
     241
     242date – date, required
     243
    177244start_time – time, required
     245
    178246end_time – time, required
     247
    179248status – text, required
    180249
     
    185254
    186255Candidate keys:
     256
    187257band_id – selected as the primary key
    188258
    189259Attributes:
     260
    190261band_id – numeric, required
     262
    191263band_name – text, required
     264
    192265genre – text, required
     266
    193267equipment – text, optional
     268
    194269phone_number – text, required
     270
    195271price_per_hour – numeric, required
    196272
     
    201277
    202278Candidate keys:
     279
    203280booking_id – selected as the primary key
    204281
    205282Attributes:
     283
    206284booking_id – numeric, required
    207 date – date, required
     285
     286date – date, required
     287
    208288start_time – time, required
     289
    209290end_time – time, required
     291
    210292status – text, required
    211293
     
    216298
    217299Candidate keys:
     300
    218301church_id – selected as the primary key
    219302
    220303Attributes:
     304
    221305church_id – numeric, required
     306
    222307name – text, required
     308
    223309location – text, required
     310
    224311contact – text, required
    225312
     
    230317
    231318Candidate keys:
     319
    232320priest_id – selected as the primary key
    233321
    234322Attributes:
     323
    235324priest_id – numeric, required
     325
    236326name – text, required
     327
    237328contact – text, required
    238329
     
    242333
    243334One User can organize multiple Weddings (1:N)
     335
    244336Each Wedding belongs to exactly one User (mandatory)
    245337
     
    247339
    248340One Wedding can have multiple Events (1:N)
     341
    249342Each Event belongs to exactly one Wedding
    250343
     
    252345
    253346One Wedding can invite multiple Guests (1:N)
     347
    254348Each Guest is associated with one Wedding
    255349
     
    257351
    258352Guests can RSVP to multiple Events and Events can have multiple RSVPs (M:N)
     353
    259354Event_RSVP stores RSVP status and response date
    260355
     
    262357
    263358Guests can attend multiple Events and Events can have multiple Attendance records (M:N)
     359
    264360Attendance stores role, seating, and attendance status
    265361
     
    267363
    268364One Wedding can have multiple Venue_bookings
     365
    269366One Venue can be booked multiple times
     367
    270368Constraint: no overlapping bookings for the same Venue
    271369
     
    273371
    274372One Wedding can have multiple Band_bookings
     373
    275374Constraint: no overlapping bookings for the same Band
    276375
     
    278377
    279378One Wedding can have multiple Photographer_bookings
     379
    280380Constraint: no overlapping bookings for the same Photographer
    281381
     
    283383
    284384Each Wedding is associated with exactly one Church (1:1)
     385
    285386A Church cannot be assigned to more than one Wedding at the same date and time
    286387
     
    288389
    289390v0.1 – Initial ER model
     391
    290392v0.2 – Updated Church–Wedding relationship
     393
    291394v0.3 – Refined Church–Wedding constraints
     395
    292396v0.4 – Fourth version of the ER model with refined Church–Wedding relationship
     397
    293398v0.5 – Final version of the ER model with improved clarity, consistency, and full alignment with the relational database design