
CREATE TABLE events_to_users (
    event_id UUID REFERENCES events(event_id) ON DELETE CASCADE, -- Foreign key with cascading delete for referential integrity
    user_id UUID REFERENCES users(user_id) ON DELETE CASCADE, -- Foreign key with cascading delete
    PRIMARY KEY (event_id, user_id) -- Ensure uniqueness of event-user pairs
);
