From 233b48bdad8d5c9571831a40dd8b7d6cb0e6f280 Mon Sep 17 00:00:00 2001 From: Emil Madsen Date: Mon, 20 May 2019 21:30:31 +0200 Subject: [PATCH] Fix missing joinable in schema --- src/db/schema.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/db/schema.rs b/src/db/schema.rs index 33c4301d..51ec1880 100644 --- a/src/db/schema.rs +++ b/src/db/schema.rs @@ -139,6 +139,22 @@ table! { } } +joinable!(attachments -> ciphers (cipher_uuid)); +joinable!(ciphers -> organizations (organization_uuid)); +joinable!(ciphers -> users (user_uuid)); +joinable!(ciphers_collections -> ciphers (cipher_uuid)); +joinable!(ciphers_collections -> collections (collection_uuid)); +joinable!(collections -> organizations (org_uuid)); +joinable!(devices -> users (user_uuid)); +joinable!(folders -> users (user_uuid)); +joinable!(folders_ciphers -> ciphers (cipher_uuid)); +joinable!(folders_ciphers -> folders (folder_uuid)); +joinable!(twofactor -> users (user_uuid)); +joinable!(users_collections -> collections (collection_uuid)); +joinable!(users_collections -> users (user_uuid)); +joinable!(users_organizations -> organizations (org_uuid)); +joinable!(users_organizations -> users (user_uuid)); + allow_tables_to_appear_in_same_query!( attachments, ciphers,