Changes between Initial Version and Version 1 of Additional Integrity Constraints


Ignore:
Timestamp:
05/12/26 01:38:06 (2 weeks ago)
Author:
193284
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Additional Integrity Constraints

    v1 v1  
     1= Additional Integrity Constraints =
     2
     3== Description ==
     4
     5This section documents additional CHECK and UNIQUE constraints implemented during the advanced database development phase.
     6
     7== SQL Code ==
     8
     9{{{
     10ALTER TABLE event_rsvp
     11ADD CONSTRAINT chk_rsvp_status
     12CHECK (status IN ('accepted', 'declined', 'pending'));
     13
     14ALTER TABLE attendance
     15ADD CONSTRAINT chk_attendance_status
     16CHECK (status IN ('attending', 'absent'));
     17
     18ALTER TABLE event_rsvp
     19ADD CONSTRAINT uq_guest_event_rsvp
     20UNIQUE (guest_id, event_id);
     21
     22ALTER TABLE attendance
     23ADD CONSTRAINT uq_guest_event_attendance
     24UNIQUE (guest_id, event_id);
     25}}}