-- Fetch all the Reviews belonging to the Yotpo
-- account of a particular user.
SELECT *
FROM fiber.yotpo_review
WHERE account_id = '{user.yotpo_id}'
-- Fetch all the Reviews belonging to the Yotpo
-- account of a particular user.
SELECT *
FROM fiber.yotpo_review
WHERE account_id = '{user.yotpo_id}'
Code
CREATE TABLE fiber.yotpo_review (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
title TEXT,
content TEXT,
score INT,
votes_up INT,
votes_down INT,
sentiment DOUBLE PRECISION,
sku TEXT,
name TEXT,
email TEXT,
reviewer_type TEXT,
deleted BOOLEAN,
user_reference TEXT,
is_incentivized BOOLEAN,
incentive_type TEXT
)
CREATE TABLE fiber.yotpo_review (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
title TEXT,
content TEXT,
score INT,
votes_up INT,
votes_down INT,
sentiment DOUBLE PRECISION,
sku TEXT,
name TEXT,
email TEXT,
reviewer_type TEXT,
deleted BOOLEAN,
user_reference TEXT,
is_incentivized BOOLEAN,
incentive_type TEXT
)
Model definition