-- Fetch all the Customers belonging to the
-- Customer.io account of a particular user.
SELECT *
FROM fiber.customerio_customer
WHERE account_id = '{user.customerio_id}'
-- Fetch all the Customers belonging to the
-- Customer.io account of a particular user.
SELECT *
FROM fiber.customerio_customer
WHERE account_id = '{user.customerio_id}'
Code
CREATE TABLE fiber.customerio_customer (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
attributes JSONB
)
CREATE TABLE fiber.customerio_customer (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
attributes JSONB
)
Model definition