Reference: civicrm_event.sql