-- Fetch all the Files belonging to the OneDrive 
-- account of a particular user. 
SELECT *
FROM fiber.onedrive_file
WHERE account_id = '{user.onedrive_id}'
-- Fetch all the Files belonging to the OneDrive 
-- account of a particular user. 
SELECT *
FROM fiber.onedrive_file
WHERE account_id = '{user.onedrive_id}'
Code
CREATE TABLE fiber.onedrive_file (
  id TEXT NOT NULL,
  created_at TIMESTAMP WITH TIME ZONE,
  updated_at TIMESTAMP WITH TIME ZONE,
  account_id TEXT,
  contents TEXT,
  byte_size DOUBLE PRECISION,
  encoding TEXT,
  mime_type TEXT
)
CREATE TABLE fiber.onedrive_file (
  id TEXT NOT NULL,
  created_at TIMESTAMP WITH TIME ZONE,
  updated_at TIMESTAMP WITH TIME ZONE,
  account_id TEXT,
  contents TEXT,
  byte_size DOUBLE PRECISION,
  encoding TEXT,
  mime_type TEXT
)
Model definition