// @generated automatically by Diesel CLI. diesel::table! { account_transfers (id) { id -> Integer, amount -> Integer, date -> Text, description -> Text, from_account_id -> Integer, to_account_id -> Integer, } } diesel::table! { accounts (id) { id -> Integer, name -> Text, opening_balance -> Integer, opening_date -> Text, } } diesel::table! { bucket_transactions (id) { id -> Integer, amount -> Integer, bucket_id -> Integer, date -> Text, description -> Text, } } diesel::table! { buckets (id) { id -> Integer, balance -> Nullable, balance_cache_key -> Nullable, bucket_group -> Text, name -> Text, } } diesel::table! { drips (id) { id -> Integer, amount -> Integer, bucket_id -> Integer, date -> Text, inserted_at_unix_seconds -> Integer, pipe_id -> Integer, } } diesel::table! { pipes (id) { id -> Integer, amount -> Integer, bucket_id -> Integer, period_length -> Integer, period_unit -> Text, start_date -> Text, } } diesel::table! { transactions (id) { id -> Integer, account_id -> Integer, amount -> Integer, bucket_id -> Nullable, counterparty -> Text, date -> Text, description -> Text, } } diesel::joinable!(bucket_transactions -> buckets (bucket_id)); diesel::joinable!(drips -> buckets (bucket_id)); diesel::joinable!(pipes -> buckets (bucket_id)); diesel::joinable!(transactions -> accounts (account_id)); diesel::allow_tables_to_appear_in_same_query!( account_transfers, accounts, bucket_transactions, buckets, drips, pipes, transactions, );