-- Fetch all the Foos belonging to the Random account
-- of a particular user.
SELECT *
FROM fiber.random_foo
WHERE account_id = '{user.random_id}'
-- Fetch all the Foos belonging to the Random account
-- of a particular user.
SELECT *
FROM fiber.random_foo
WHERE account_id = '{user.random_id}'
Code
CREATE TABLE fiber.random_foo (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
a TEXT,
b TEXT,
c TEXT
)
CREATE TABLE fiber.random_foo (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
a TEXT,
b TEXT,
c TEXT
)
Model definition