create or replace view v_officials as
select
	users.id,
    users.name,
    users.email,
    users.phone,
    users.document_number,
    users.image,
    users.status
from model_has_roles
join users on users.id = model_has_roles.model_id
where model_has_roles.role_id = 3;
