CREATE VIEW api.like AS
	SELECT
		l.id,
		l.user_id,
		l.post_id,
		l.comment_id,
		l.value,
		l.created,
		l.modified
	FROM
		admin.like l;

GRANT SELECT ON TABLE api.like
	TO rest_anon, rest_user;
GRANT SELECT ON TABLE admin.like
	TO rest_anon, rest_user;
