table! { blog_authors (id) { id -> Integer, blog_id -> Integer, author_id -> Integer, is_owner -> Bool, } } table! { blogs (id) { id -> Integer, actor_id -> Text, title -> Text, summary -> Text, outbox_url -> Text, inbox_url -> Text, instance_id -> Integer, creation_date -> Timestamp, ap_url -> Text, private_key -> Nullable, public_key -> Text, } } table! { comments (id) { id -> Integer, content -> Text, in_response_to_id -> Nullable, post_id -> Integer, author_id -> Integer, creation_date -> Timestamp, ap_url -> Nullable, sensitive -> Bool, spoiler_text -> Text, } } table! { follows (id) { id -> Integer, follower_id -> Integer, following_id -> Integer, ap_url -> Text, } } table! { instances (id) { id -> Integer, public_domain -> Text, name -> Text, local -> Bool, blocked -> Bool, creation_date -> Timestamp, open_registrations -> Bool, short_description -> Text, long_description -> Text, default_license -> Text, long_description_html -> Text, short_description_html -> Text, } } table! { likes (id) { id -> Integer, user_id -> Integer, post_id -> Integer, ap_url -> Text, creation_date -> Timestamp, } } table! { medias (id) { id -> Integer, file_path -> Text, alt_text -> Text, is_remote -> Bool, remote_url -> Nullable, sensitive -> Bool, content_warning -> Nullable, owner_id -> Integer, } } table! { mentions (id) { id -> Integer, mentioned_id -> Integer, post_id -> Nullable, comment_id -> Nullable, ap_url -> Text, } } table! { notifications (id) { id -> Integer, user_id -> Integer, creation_date -> Timestamp, kind -> Text, object_id -> Integer, } } table! { post_authors (id) { id -> Integer, post_id -> Integer, author_id -> Integer, } } table! { posts (id) { id -> Integer, blog_id -> Integer, slug -> Text, title -> Text, content -> Text, published -> Bool, license -> Text, creation_date -> Timestamp, ap_url -> Text, subtitle -> Text, source -> Text, } } table! { reshares (id) { id -> Integer, user_id -> Integer, post_id -> Integer, ap_url -> Text, creation_date -> Timestamp, } } table! { tags (id) { id -> Integer, tag -> Text, is_hastag -> Bool, post_id -> Integer, } } table! { users (id) { id -> Integer, username -> Text, display_name -> Text, outbox_url -> Text, inbox_url -> Text, is_admin -> Bool, summary -> Text, email -> Nullable, hashed_password -> Nullable, instance_id -> Integer, creation_date -> Timestamp, ap_url -> Text, private_key -> Nullable, public_key -> Text, shared_inbox_url -> Nullable, followers_endpoint -> Text, avatar_id -> Nullable, last_fetched_date -> Timestamp, } } joinable!(blog_authors -> blogs (blog_id)); joinable!(blog_authors -> users (author_id)); joinable!(blogs -> instances (instance_id)); joinable!(comments -> posts (post_id)); joinable!(comments -> users (author_id)); joinable!(likes -> posts (post_id)); joinable!(likes -> users (user_id)); joinable!(mentions -> comments (comment_id)); joinable!(mentions -> posts (post_id)); joinable!(mentions -> users (mentioned_id)); joinable!(notifications -> users (user_id)); joinable!(post_authors -> posts (post_id)); joinable!(post_authors -> users (author_id)); joinable!(posts -> blogs (blog_id)); joinable!(reshares -> posts (post_id)); joinable!(reshares -> users (user_id)); joinable!(tags -> posts (post_id)); joinable!(users -> instances (instance_id)); allow_tables_to_appear_in_same_query!( blog_authors, blogs, comments, follows, instances, likes, medias, mentions, notifications, post_authors, posts, reshares, tags, users, );