Cotton code
1983 lines · 34.1 KB · JSONRaw
[  {    "table": "account_usage_sample",    "from": "cotton_account_usage_samples",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "account_id",      "sampled_at",      "five_hour_pct",      "weekly_pct"    ],    "json": [],    "bool": []  },  {    "table": "alarm",    "from": "cotton_alarms",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "label",      "hour",      "minute",      "repeat_days",      "enabled",      "sound",      "trashed_at"    ],    "json": [      "repeat_days"    ],    "bool": [      "enabled",      "sound"    ]  },  {    "table": "assistant_run",    "from": "cotton_assistant_runs",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "source_kind",      "source_id",      "record_kind",      "record_id",      "session_id",      "class",      "state",      "task",      "receipt",      "turns",      "input_tokens",      "output_tokens",      "cost_usd",      "result_note_id",      "stopped_reason",      "error",      "queued_at",      "started_at",      "finished_at"    ],    "json": [],    "bool": []  },  {    "table": "blocked_sender",    "from": "cotton_blocked_senders",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "address"    ],    "json": [],    "bool": []  },  {    "table": "call",    "from": "cotton_call_log",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "source",      "external_id",      "provider",      "direction",      "outcome",      "started_at",      "duration_s",      "handle",      "contact_id",      "person_id",      "device",      "meta"    ],    "json": [      "meta"    ],    "bool": []  },  {    "table": "code_credential",    "from": "cotton_code_credentials",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "device_id",      "name",      "scope",      "expires_at",      "revoked_at",      "last_used_at",      "token_digest",      "minted_by",      "read_only"    ],    "json": [],    "bool": []  },  {    "table": "comment",    "from": "cotton_comments",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "record_kind",      "record_id",      "parent_id",      "body",      "author_kind",      "author_user_id",      "author_label",      "anchor",      "resolved_at",      "resolved_by_kind",      "resolved_by_label",      "kind",      "trashed_at"    ],    "json": [      "anchor"    ],    "bool": []  },  {    "table": "decision",    "from": "cotton_decisions",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "title",      "why",      "pull",      "decided_by",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "dev_job",    "from": "cotton_dev_jobs",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "device_id",      "command",      "cwd",      "timeout_seconds",      "state",      "exit_code",      "failure",      "log_path",      "log_bytes",      "log_lines",      "output_tail",      "claimed_at",      "finished_at"    ],    "json": [],    "bool": []  },  {    "table": "document_page",    "from": "cotton_document_pages",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "document_id",      "page",      "text"    ],    "json": [],    "bool": []  },  {    "table": "document",    "from": "cotton_documents",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "title",      "original_name",      "mime",      "byte_size",      "sha256",      "storage_path",      "decrypted_path",      "password",      "page_count",      "status",      "failed_stage",      "error_code",      "status_changed_at",      "doc_type",      "document_date",      "period_start",      "period_end",      "issuer",      "summary",      "facts",      "text_extracted",      "source",      "mcp_token_id",      "origin_handle",      "secret_id",      "trashed_at"    ],    "json": [      "facts"    ],    "bool": [      "text_extracted"    ]  },  {    "table": "email_participant",    "from": "cotton_email_participants",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "thread_id",      "email",      "display_name",      "role"    ],    "json": [],    "bool": []  },  {    "table": "email_sender",    "from": "cotton_email_senders",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "address",      "kind",      "written_to",      "decided_by",      "verdict",      "reason",      "decided_at"    ],    "json": [],    "bool": [      "written_to"    ]  },  {    "table": "email_thread",    "from": "cotton_email_threads",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "external_key",      "subject",      "first_at",      "last_at",      "email_count",      "summary",      "summary_updated_at",      "summary_by",      "trashed_at",      "sender_address",      "sender_kind",      "record_kind",      "amount_minor",      "currency",      "merchant",      "record_on",      "reference",      "record_reason"    ],    "json": [],    "bool": []  },  {    "table": "email",    "from": "cotton_emails",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "thread_id",      "external_id",      "subject",      "from_email",      "from_name",      "recipients",      "sent_at",      "body",      "snippet",      "attachments",      "gmail_id",      "gmail_account",      "labels",      "unread",      "starred",      "in_inbox",      "trashed_at",      "sync_state",      "account"    ],    "json": [      "recipients",      "attachments",      "labels"    ],    "bool": [      "unread",      "starred",      "in_inbox"    ]  },  {    "table": "event_attendee",    "from": "cotton_event_attendees",    "key": "id",    "workspace": false,    "bin": false,    "columns": [      "event_id",      "email",      "phone",      "display_name",      "response"    ],    "json": [],    "bool": []  },  {    "table": "event",    "from": "cotton_events",    "key": "id",    "workspace": false,    "bin": true,    "columns": [      "collection_id",      "title",      "notes",      "starts_at",      "ends_at",      "all_day",      "rrule",      "location",      "source_inbox_id",      "gcal_id",      "gcal_etag",      "sync_state",      "organizer_is_self",      "my_response",      "series_id",      "original_starts_at",      "exdates",      "trashed_at",      "erase_requested_at",      "ical_uid",      "account",      "on_google",      "event_place",      "country",      "timezone"    ],    "json": [      "exdates"    ],    "bool": [      "all_day",      "organizer_is_self",      "on_google"    ]  },  {    "table": "feedback",    "from": "cotton_feedback",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "image_sha256",      "image_ext",      "x",      "y",      "body",      "author_kind",      "author_user_id",      "author_label",      "person_id",      "same_as",      "share_id",      "app",      "context",      "status",      "resolved_at",      "resolved_by_kind",      "resolved_by_label",      "resolution_note",      "parent_id"    ],    "json": [      "context"    ],    "bool": []  },  {    "table": "filing_proposal",    "from": "cotton_filing_proposals",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "owner",      "session",      "source",      "destination",      "kind",      "candidates",      "arrivals",      "revisions",      "payload",      "reason",      "status",      "decided_at",      "answer"    ],    "json": [      "candidates",      "arrivals",      "revisions",      "payload"    ],    "bool": []  },  {    "table": "goal",    "from": "cotton_goals",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "title",      "why",      "target_date",      "status",      "achieved_at",      "sort_order",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "thought",    "from": "cotton_inbox_items",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "raw_text",      "audio_url",      "captured_at",      "route_status",      "routed_kind",      "routed_id",      "route_confidence",      "correction_of",      "transcript",      "route_reason",      "route_proposal",      "routed_records",      "route_plan",      "route_plan_user_edited",      "swept_at",      "sweep_note",      "said_table",      "said_record_id",      "trashed_at"    ],    "json": [      "route_proposal",      "routed_records",      "route_plan"    ],    "bool": [      "route_plan_user_edited"    ]  },  {    "table": "location",    "from": "cotton_locations",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "name",      "address",      "lat",      "lng",      "note",      "source_inbox_id",      "archived_at",      "trashed_at",      "place",      "place_id",      "country",      "timezone",      "near"    ],    "json": [],    "bool": []  },  {    "table": "code_runner",    "from": "cotton_machine_runners",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "device_id",      "enabled",      "labels_json",      "capacity",      "ai_levels"    ],    "json": [      "labels_json",      "ai_levels"    ],    "bool": [      "enabled"    ]  },  {    "table": "album_item",    "from": "cotton_media_album_items",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "album_id",      "record_kind",      "record_id",      "added_by",      "sort_at",      "origin_handle"    ],    "json": [],    "bool": []  },  {    "table": "album",    "from": "cotton_media_albums",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "kind",      "state",      "decided_at",      "title",      "title_by",      "starts_at",      "ends_at",      "home_label",      "cover_id",      "origin_handle",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "duplicate",    "from": "cotton_media_duplicates",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "record_kind",      "keep_id",      "copy_id",      "distance",      "method",      "state",      "decided_at"    ],    "json": [],    "bool": []  },  {    "table": "face",    "from": "cotton_media_faces",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "record_kind",      "record_id",      "source",      "source_id",      "x",      "y",      "w",      "h",      "quality",      "cluster_id",      "person_id",      "suggested_person_id",      "suggested_distance",      "suggestion_dismissed_at",      "embedding",      "embedding_model",      "person_by"    ],    "json": [],    "bool": []  },  {    "table": "sighting",    "from": "cotton_media_sightings",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "record_kind",      "record_id",      "source",      "source_id",      "thread_id",      "key",      "seen_at"    ],    "json": [],    "bool": []  },  {    "table": "meeting_utterance",    "from": "cotton_meeting_utterances",    "key": "id",    "workspace": false,    "bin": false,    "columns": [      "meeting_id",      "seq",      "speaker_label",      "t0_ms",      "t1_ms",      "text"    ],    "json": [],    "bool": []  },  {    "table": "meeting",    "from": "cotton_meetings",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "title",      "status",      "source",      "started_at",      "ended_at",      "duration_seconds",      "language",      "event_id",      "speakers",      "summary_md",      "decisions",      "vendor",      "vendor_job_id",      "poll_attempts",      "status_changed_at",      "audio_deleted_at",      "failed_stage",      "error_code",      "segments",      "trashed_at",      "event_database"    ],    "json": [      "speakers",      "decisions",      "segments"    ],    "bool": []  },  {    "table": "money_account",    "from": "cotton_money_accounts",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "kind",      "subtype",      "name",      "counterparty_person_id",      "currency",      "institution",      "number_mask",      "is_default",      "is_pooled",      "archived_at",      "trashed_at"    ],    "json": [],    "bool": [      "is_default",      "is_pooled"    ]  },  {    "table": "evidence",    "from": "cotton_money_evidence",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "transaction_id",      "kind",      "ref_id",      "excerpt",      "source_label",      "attached_by",      "attached_by_label",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "statement_line",    "from": "cotton_money_statement_lines",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "statement_id",      "page",      "line_no",      "posted_on",      "text",      "amount_minor",      "direction",      "balance_after_minor",      "reference",      "fingerprint",      "ignored_reason"    ],    "json": [],    "bool": []  },  {    "table": "statement",    "from": "cotton_money_statements",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "document_id",      "account_id",      "kind",      "period_start",      "period_end",      "opening_balance_minor",      "closing_balance_minor",      "currency",      "read_status",      "read_error",      "read_by",      "read_at",      "line_count",      "sum_in_minor",      "sum_out_minor",      "balance_check"    ],    "json": [],    "bool": []  },  {    "table": "transaction",    "from": "cotton_money_transactions",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "occurred_on",      "description",      "payee_text",      "account_id",      "counterparty_person_id",      "amount_minor",      "amount_known",      "direction",      "currency",      "for_period",      "status",      "certainty",      "repeat",      "repeat_day",      "between_us",      "moves_money",      "tag",      "transfer_of",      "source",      "external_hash",      "notes",      "settles_transaction_id",      "due_date",      "source_inbox_id",      "created_by",      "trashed_at"    ],    "json": [],    "bool": [      "amount_known",      "between_us",      "moves_money"    ]  },  {    "table": "mood",    "from": "cotton_moods",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "at",      "line",      "emotions",      "emotions_by",      "local_day",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "message_contact_handle",    "from": "cotton_msg_contact_handles",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "contact_id",      "kind",      "value"    ],    "json": [],    "bool": []  },  {    "table": "message_contact",    "from": "cotton_msg_contacts",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "phone_e164",      "display_name",      "person_id",      "auth_user_id",      "vip",      "muted",      "blocked",      "on_cotton_at",      "avatar_key"    ],    "json": [],    "bool": [      "vip",      "muted",      "blocked"    ]  },  {    "table": "message",    "from": "cotton_msg_messages",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "thread_id",      "direction",      "channel",      "origin",      "body",      "media",      "external_id",      "sent_at",      "read_at",      "reply_to_id",      "reply_to_external_id",      "reactions",      "meta",      "sender_contact_id",      "sender_participant_id",      "seq",      "edited_at",      "deleted_at",      "forward_of_id",      "mentions",      "starred_at",      "hidden_at",      "send_state",      "send_error",      "send_attempts",      "trashed_at"    ],    "json": [      "media",      "reactions",      "meta",      "mentions"    ],    "bool": []  },  {    "table": "message_settings",    "from": "cotton_msg_owner_settings",    "key": "workspace_id",    "workspace": true,    "bin": false,    "columns": [      "handle",      "display_name",      "avatar_url",      "availability_copy",      "allow_new_contacts",      "app_download_url",      "read_receipts",      "discoverable",      "last_seen_visible",      "share_requests"    ],    "json": [],    "bool": [      "allow_new_contacts",      "read_receipts",      "discoverable",      "last_seen_visible"    ]  },  {    "table": "message_reaction",    "from": "cotton_msg_reactions",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "thread_id",      "message_id",      "actor",      "emoji"    ],    "json": [],    "bool": []  },  {    "table": "message_receipt",    "from": "cotton_msg_receipts",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "thread_id",      "phone",      "delivered_seq",      "read_seq"    ],    "json": [],    "bool": []  },  {    "table": "thread_filing",    "from": "cotton_msg_thread_filings",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "thread_id",      "database_id",      "state",      "paused_by",      "copied_through",      "filed_at",      "unfiled_at"    ],    "json": [      "paused_by",      "copied_through"    ],    "bool": []  },  {    "table": "thread_mark",    "from": "cotton_msg_thread_marks",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "database_id",      "thread_id",      "pinned_at",      "muted_until",      "archived",      "cleared_before"    ],    "json": [],    "bool": [      "archived"    ]  },  {    "table": "thread_member",    "from": "cotton_msg_thread_participants",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "thread_id",      "contact_id",      "display_name",      "role",      "left_at",      "is_self"    ],    "json": [],    "bool": [      "is_self"    ]  },  {    "table": "thread",    "from": "cotton_msg_threads",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "contact_id",      "kind",      "last_message_at",      "last_message_preview",      "archived",      "title",      "external_key",      "photo_key",      "description",      "created_by_phone",      "read_seq",      "delivered_seq",      "muted_until",      "pinned_at",      "unread_marked_at",      "draft",      "draft_reply_to_id",      "cleared_before",      "summary",      "summary_updated_at",      "summary_by",      "trashed_at"    ],    "json": [],    "bool": [      "archived"    ]  },  {    "table": "news_edition",    "from": "cotton_news_editions",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "status",      "trigger_kind",      "edition_label",      "covered_from",      "covered_to",      "story_count",      "read_minutes",      "quiet",      "notes",      "model",      "opened_at",      "status_changed_at",      "failed_stage",      "error_code"    ],    "json": [      "quiet",      "notes"    ],    "bool": []  },  {    "table": "news_seen",    "from": "cotton_news_seen",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "topic_id",      "key",      "title_hash",      "url",      "source",      "first_seen_at",      "story_id"    ],    "json": [],    "bool": []  },  {    "table": "news_settings",    "from": "cotton_news_settings",    "key": "workspace_id",    "workspace": true,    "bin": false,    "columns": [      "edition_times",      "timezone",      "stale_after_minutes",      "stale_refresh",      "notify",      "next_edition_at"    ],    "json": [      "edition_times"    ],    "bool": [      "stale_refresh",      "notify"    ]  },  {    "table": "news_story",    "from": "cotton_news_stories",    "key": "id",    "workspace": false,    "bin": false,    "columns": [      "edition_id",      "topic_id",      "rank",      "headline",      "lede",      "bullets",      "sources",      "why_care",      "read_minutes",      "opened_at",      "feedback"    ],    "json": [      "bullets",      "sources"    ],    "bool": []  },  {    "table": "news_topic",    "from": "cotton_news_topics",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "name",      "brief",      "exclusions",      "kind",      "source_url",      "active",      "paused_reason",      "unopened_streak",      "last_new_at",      "sort_order",      "trashed_at"    ],    "json": [],    "bool": [      "active"    ]  },  {    "table": "note_attachment",    "from": "cotton_note_attachments",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "note_id",      "record_kind",      "record_id",      "position",      "caption",      "origin_handle"    ],    "json": [],    "bool": []  },  {    "table": "outage",    "from": "cotton_outages",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "kind",      "condition",      "machine",      "title",      "effect",      "doing",      "started_at",      "ended_at",      "told_open_at",      "told_close_at"    ],    "json": [],    "bool": []  },  {    "table": "page",    "from": "cotton_pages",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "url",      "host",      "title",      "read_at",      "source_inbox_id",      "archived_at",      "text_state",      "state",      "text",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "person",    "from": "cotton_people",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "full_name",      "org",      "role_title",      "city",      "summary",      "summary_updated_at",      "summary_by",      "contact_source",      "device_contact_id",      "archived_at",      "birth_month",      "birth_day",      "birth_year",      "timezone",      "avatar_url",      "avatar_key",      "device_contact_snapshot",      "city_filled_at",      "avatar_photo_id",      "trashed_at",      "language",      "face_embedding",      "face_embedding_model",      "face_embedding_from",      "city_place",      "country"    ],    "json": [      "device_contact_snapshot"    ],    "bool": []  },  {    "table": "person_handle",    "from": "cotton_person_handles",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "person_id",      "kind",      "value",      "normalised",      "source",      "verified_at",      "position",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "person_language",    "from": "cotton_person_languages",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "person_id",      "language",      "proficiency",      "position",      "trashed_at"    ],    "json": [],    "bool": []  },  {    "table": "person_note",    "from": "cotton_person_notes",    "key": "id",    "workspace": false,    "bin": false,    "columns": [      "person_id",      "body",      "noted_at",      "source_inbox_id"    ],    "json": [],    "bool": []  },  {    "table": "person_suggestion",    "from": "cotton_person_suggestions",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "person_id",      "contact_id",      "candidate_id",      "reason",      "score",      "state",      "decided_at"    ],    "json": [],    "bool": []  },  {    "table": "photo",    "from": "cotton_photos",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "key",      "sha256",      "content_type",      "size_bytes",      "width",      "height",      "taken_at",      "preview",      "caption",      "summary",      "summary_by",      "summary_at",      "review_note",      "review_by",      "review_at",      "taken_offset",      "latitude",      "longitude",      "place_name",      "place_city",      "place_region",      "place_country",      "camera_make",      "camera_model",      "orientation",      "favourite",      "subtypes",      "original_filename",      "aesthetic_score",      "curation_score",      "labels",      "phash",      "ocr_text",      "is_utility",      "origin_handle",      "trashed_at",      "image_embedding",      "image_embedding_model"    ],    "json": [      "subtypes",      "labels"    ],    "bool": [      "favourite",      "is_utility"    ]  },  {    "table": "placement_proposal",    "from": "cotton_placement_proposals",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "title",      "items",      "status",      "decided_at"    ],    "json": [      "items"    ],    "bool": []  },  {    "table": "post",    "from": "cotton_posts",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "source",      "account",      "external_id",      "saved",      "author_handle",      "author_name",      "person_id",      "caption",      "media",      "posted_at",      "saved_at",      "permalink"    ],    "json": [      "media"    ],    "bool": [      "saved"    ]  },  {    "table": "repo_bundle",    "from": "cotton_repo_bundles",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "object_key",      "kind",      "basis_sha",      "head_sha",      "refs_json",      "bytes",      "sha256",      "superseded_at"    ],    "json": [      "refs_json"    ],    "bool": []  },  {    "table": "repo_clone",    "from": "cotton_repo_clones",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "device_id",      "state",      "sentence"    ],    "json": [],    "bool": []  },  {    "table": "repo_comment",    "from": "cotton_repo_comments",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "target_kind",      "target_number",      "kind",      "remote_id",      "author",      "body",      "review_state",      "path",      "line",      "html_url",      "remote_created_at",      "remote_updated_at"    ],    "json": [],    "bool": []  },  {    "table": "repo_commit",    "from": "cotton_repo_commits",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "sha",      "message",      "author_name",      "author_login",      "authored_at",      "parents",      "html_url"    ],    "json": [      "parents"    ],    "bool": []  },  {    "table": "issue",    "from": "cotton_repo_issues",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "number",      "remote_id",      "title",      "body",      "state",      "author",      "labels",      "comments_count",      "html_url",      "remote_created_at",      "remote_updated_at",      "closed_at"    ],    "json": [      "labels"    ],    "bool": []  },  {    "table": "repo_job",    "from": "cotton_repo_jobs",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "run_id",      "index_in_run",      "task_id",      "name",      "runs_on",      "needs_json",      "status",      "conclusion",      "runner_uuid",      "timeout_minutes",      "outputs_json",      "steps_json",      "summary",      "log_lines",      "log_ack",      "log_key",      "cancel_requested",      "requeues",      "started_at",      "finished_at",      "token_digest"    ],    "json": [      "needs_json",      "outputs_json",      "steps_json"    ],    "bool": [      "cancel_requested"    ]  },  {    "table": "repo_label",    "from": "cotton_repo_labels",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "name",      "color",      "description",      "remote_id"    ],    "json": [],    "bool": []  },  {    "table": "repo_merge_queue",    "from": "cotton_repo_merge_queue",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "pull_id",      "pull_number",      "base_ref",      "head_sha",      "state",      "failures",      "reason",      "train_number",      "train_base_sha",      "train_tip_sha",      "train_run_id",      "landed_sha",      "enqueued_at",      "finished_at",      "train_squash_sha"    ],    "json": [],    "bool": []  },  {    "table": "pull",    "from": "cotton_repo_pulls",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "number",      "remote_id",      "title",      "body",      "state",      "merged",      "draft",      "author",      "head_ref",      "head_sha",      "base_ref",      "mergeable",      "additions",      "deletions",      "changed_files",      "comments_count",      "review_comments_count",      "labels",      "checks_state",      "checks",      "html_url",      "remote_created_at",      "remote_updated_at",      "merged_at",      "closed_at",      "merge_commit_sha"    ],    "json": [      "labels",      "checks"    ],    "bool": [      "merged",      "draft",      "mergeable"    ]  },  {    "table": "release",    "from": "cotton_repo_releases",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "tag",      "name",      "body",      "draft",      "prerelease",      "target_sha",      "author",      "published_at",      "assets_json",      "html_url",      "remote_id",      "synced_at"    ],    "json": [      "assets_json"    ],    "bool": [      "draft",      "prerelease"    ]  },  {    "table": "repo_rule",    "from": "cotton_repo_rules",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "branch",      "required_contexts_json",      "required_approvals",      "block_outdated",      "allow_push"    ],    "json": [      "required_contexts_json"    ],    "bool": [      "block_outdated",      "allow_push"    ]  },  {    "table": "repo_runner",    "from": "cotton_repo_runners",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "uuid",      "name",      "labels_json",      "device_id",      "credential_id",      "version",      "last_seen_at"    ],    "json": [      "labels_json"    ],    "bool": []  },  {    "table": "run",    "from": "cotton_repo_runs",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "index_in_repo",      "workflow",      "workflow_name",      "event",      "ref",      "sha",      "pull_id",      "status",      "conclusion",      "triggered_by",      "started_at",      "finished_at"    ],    "json": [],    "bool": []  },  {    "table": "repo_var",    "from": "cotton_repo_vars",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "repo_id",      "name",      "value"    ],    "json": [],    "bool": []  },  {    "table": "repository",    "from": "cotton_repos",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "key",      "host",      "owner",      "name",      "kind",      "default_branch",      "description",      "web_url",      "open_pulls",      "open_issues",      "sync_state",      "last_error",      "synced_at",      "pulls_cursor",      "issues_cursor",      "held",      "origin",      "head_sha",      "held_at",      "bundle_state",      "last_bundle_error"    ],    "json": [],    "bool": [      "held"    ]  },  {    "table": "story",    "from": "cotton_stories",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "source",      "account",      "external_id",      "person_id",      "sender",      "sender_label",      "kind",      "caption",      "media_key",      "media_content_type",      "media_dropped_at",      "posted_at",      "expires_at",      "seen_at",      "kept"    ],    "json": [],    "bool": [      "kept"    ]  },  {    "table": "thought_attachment",    "from": "cotton_thought_attachments",    "key": "id",    "workspace": true,    "bin": false,    "columns": [      "thought_id",      "record_kind",      "record_id",      "position",      "caption"    ],    "json": [],    "bool": []  },  {    "table": "todo_recurrence",    "from": "cotton_todo_recurrences",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "title",      "notes",      "priority",      "rrule",      "dtstart",      "paused",      "materialized_until",      "source_inbox_id",      "trashed_at"    ],    "json": [],    "bool": [      "paused"    ]  },  {    "table": "video",    "from": "cotton_videos",    "key": "id",    "workspace": true,    "bin": true,    "columns": [      "key",      "sha256",      "content_type",      "size_bytes",      "width",      "height",      "duration_ms",      "taken_at",      "preview",      "poster_key",      "caption",      "summary",      "summary_by",      "summary_at",      "review_note",      "review_by",      "review_at",      "taken_offset",      "latitude",      "longitude",      "place_name",      "place_city",      "place_region",      "place_country",      "camera_make",      "camera_model",      "orientation",      "favourite",      "subtypes",      "original_filename",      "aesthetic_score",      "curation_score",      "labels",      "phash",      "origin_handle",      "trashed_at"    ],    "json": [      "subtypes",      "labels"    ],    "bool": [      "favourite"    ]  }]