Changes between Version 3 and Version 4 of ERModel


Ignore:
Timestamp:
01/09/26 09:57:32 (12 days ago)
Author:
193284
Comment:

Simplified the model by removing Church_booking and modeling a direct 1:1 relationship between Wedding and Church.

Legend:

Unmodified
Added
Removed
Modified
  • ERModel

    v3 v4  
    236236
    237237
    238 == **Entity: Church_booking**
    239 
    240 Explanation:
    241 The Church_booking entity records church reservations for wedding ceremonies.
    242 
    243 **Candidate keys:**
    244 booking_id – chosen as the primary key.
    245 
    246 **Attributes:**
    247 booking_id – numeric, required
    248 date – date, required
    249 start_time – time, required
    250 end_time – time, required
    251 status – text, required
    252 
    253 
    254238== **Entity: Priest**
    255239
     
    304288* Constraint: no overlapping bookings for the same Photographer.
    305289
    306 === Wedding – Church_booking – Church
    307 * One Wedding can have many Church_bookings (1:N).
    308 * One Church can be booked many times (1:N).
    309 * Constraint: no overlapping bookings for the same Church.
     290=== Wedding – Church
     291
     292Each Wedding is associated with exactly one Church (1:1).
     293Each Church is associated with at most one Wedding for a given date and time.
     294This relationship reflects the real-world assumption that a wedding ceremony is held in a single church.
     295Since the relationship is 1:1 and no additional booking-specific attributes are required, a separate Church_booking entity is not needed.
     296Constraint: a Church cannot be assigned to more than one Wedding at the same date and time.
    310297
    311298