From d2eea77842189c6964b51bc75ca5a62172b77dcd Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 18 Jan 2018 21:30:24 +0100 Subject: Add users table to schema. --- src/schema.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/schema.rs b/src/schema.rs index 3124ea5..ad122fd 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -6,3 +6,18 @@ table! { published -> Bool, } } + +table! { + users (id) { + id -> Int4, + username -> Varchar, + realname -> Nullable, + email -> Nullable, + password -> Varchar, + } +} + +allow_tables_to_appear_in_same_query!( + posts, + users, +); -- cgit v1.2.3