From a324a89fd089ca489e6120ed6ee6b394750cacb6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:03:52 +0200 Subject: chore(schema): Update generated Diesel schema Updates the generated schema with the new users table. This commit will break the build. --- src/schema.rs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/schema.rs') diff --git a/src/schema.rs b/src/schema.rs index b5a8fab7faae..af9976dd4dfc 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -22,8 +22,7 @@ table! { thread_id -> Int4, body -> Text, posted -> Timestamptz, - author_name -> Varchar, - author_email -> Varchar, + author -> Int4, } } @@ -32,9 +31,17 @@ table! { id -> Int4, title -> Varchar, posted -> Timestamptz, - author_name -> Varchar, - author_email -> Varchar, sticky -> Bool, + author -> Int4, + } +} + +table! { + users (id) { + id -> Int4, + email -> Varchar, + name -> Varchar, + admin -> Bool, } } @@ -53,8 +60,11 @@ table! { } joinable!(posts -> threads (thread_id)); +joinable!(posts -> users (author)); +joinable!(threads -> users (author)); allow_tables_to_appear_in_same_query!( posts, threads, + users, ); -- cgit 1.4.1