--
-- parties_del_tr/0
--
create or replace function parties_del_tr(
  
) returns trigger as $$

begin

  delete from party_approved_member_map
  where party_id = old.party_id
    and member_id = old.party_id;

  return old;

end;$$ language plpgsql;