-- Fetch all the Records belonging to the Airtable
-- account of a particular user.
SELECT *
FROM fiber.airtable_record
WHERE account_id = '{user.airtable_id}'
-- Fetch all the Records belonging to the Airtable
-- account of a particular user.
SELECT *
FROM fiber.airtable_record
WHERE account_id = '{user.airtable_id}'
Code
CREATE TABLE fiber.airtable_record (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
fields JSONB
)
CREATE TABLE fiber.airtable_record (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
fields JSONB
)
Model definition