about summary refs log tree commit diff
path: root/src/schema.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-05-01T18·03+0200
committerVincent Ambo <github@tazj.in>2018-05-01T22·33+0200
commita324a89fd089ca489e6120ed6ee6b394750cacb6 (patch)
tree79c86dc8659548cba4720307ce28af104ec356ed /src/schema.rs
parent1d9ff8b4c89b507d33ebdbc35f5e939add67833c (diff)
chore(schema): Update generated Diesel schema
Updates the generated schema with the new users table.

This commit will break the build.
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/schema.rs b/src/schema.rs
index b5a8fab7fa..af9976dd4d 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,
 );