
CREATE TRIGGER tg_log_appointment_group
    BEFORE UPDATE OR DELETE
    ON appointment_group
    FOR EACH ROW
EXECUTE PROCEDURE func_create_log_appointment_group();