CREATE INDEX avz_t_mail_send_user_id_index
  ON avz_t_mail_send
  USING btree
  (user_id);

CREATE INDEX eip_t_mail_account_id_index
  ON eip_t_mail
  USING btree
  (account_id);

CREATE INDEX avz_t_mail_send_account_id_index
  ON avz_t_mail_send
  USING btree
  (account_id);

CREATE INDEX eip_t_mail_folder_id_index
  ON eip_t_mail
  USING btree
  (folder_id);

CREATE INDEX avz_t_mail_send_folder_id_index
  ON avz_t_mail_send
  USING btree
  (folder_id);

CREATE INDEX eip_t_mail_event_date_index
  ON eip_t_mail
  USING btree
  (event_date);

CREATE INDEX avz_t_mail_send_event_date_index
  ON avz_t_mail_send
  USING btree
  (event_date);

CREATE INDEX eip_m_addressbook_owner_id_email_index
  ON eip_m_addressbook
  USING btree
  (owner_id, email);

CREATE INDEX eip_m_mail_account_index_1
   ON eip_m_mail_account USING btree (user_id, mail_address);

