-- Fetch all the Sheets belonging to the Google
-- Sheets account of a particular user.
SELECT *
FROM fiber.sheets_sheet
WHERE account_id = '{user.sheets_id}'
-- Fetch all the Sheets belonging to the Google
-- Sheets account of a particular user.
SELECT *
FROM fiber.sheets_sheet
WHERE account_id = '{user.sheets_id}'
Code
CREATE TABLE fiber.sheets_sheet (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
title TEXT,
sheets JSONB,
named_ranges JSONB,
spreadsheet_url TEXT,
properties JSONB,
data_sources JSONB
)
CREATE TABLE fiber.sheets_sheet (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
title TEXT,
sheets JSONB,
named_ranges JSONB,
spreadsheet_url TEXT,
properties JSONB,
data_sources JSONB
)
Model definition