table! { ciphers (uuid) { uuid -> Text, created_at -> Timestamp, updated_at -> Timestamp, user_uuid -> Text, folder_uuid -> Nullable, organization_uuid -> Nullable, #[sql_name = "type"] type_ -> Integer, data -> Text, favorite -> Bool, attachments -> Nullable, } } table! { devices (uuid) { uuid -> Text, created_at -> Timestamp, updated_at -> Timestamp, user_uuid -> Text, name -> Text, #[sql_name = "type"] type_ -> Integer, push_token -> Nullable, refresh_token -> Text, } } table! { folders (uuid) { uuid -> Text, created_at -> Timestamp, updated_at -> Timestamp, user_uuid -> Text, name -> Text, } } table! { users (uuid) { uuid -> Text, created_at -> Timestamp, updated_at -> Timestamp, email -> Text, name -> Text, password_hash -> Binary, salt -> Binary, password_iterations -> Integer, password_hint -> Nullable, key -> Text, private_key -> Nullable, public_key -> Nullable, totp_secret -> Nullable, totp_recover -> Nullable, security_stamp -> Text, } } joinable!(ciphers -> folders (folder_uuid)); joinable!(ciphers -> users (user_uuid)); joinable!(devices -> users (user_uuid)); joinable!(folders -> users (user_uuid)); allow_tables_to_appear_in_same_query!( ciphers, devices, folders, users, );