diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/schema.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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<Varchar>, + email -> Nullable<Varchar>, + password -> Varchar, + } +} + +allow_tables_to_appear_in_same_query!( + posts, + users, +); |