create table emails ( name text not null, email text not null, notify_when text references notification_optionses not null default 'on_state_change_and_failures' ); comment on table emails is ' An email to send notifications to ';