create or replace view v_queries as
select
	queries.id,
    queries.content_id,
    contents.name as content_name,
    queries.user_id,
    users.name as user_name,
    users.image as user_image,
    queries.question,
    queries.description,
    queries.answered
from queries
join contents on contents.id = queries.content_id
join users on users.id = queries.user_id;
