diff options
| author | Harald Eilertsen <haraldei@anduin.net> | 2018-01-18 21:30:24 +0100 |
|---|---|---|
| committer | Harald Eilertsen <haraldei@anduin.net> | 2018-01-18 22:01:46 +0100 |
| commit | d2eea77842189c6964b51bc75ca5a62172b77dcd (patch) | |
| tree | 33af33ee496a3c99ea84024065d9edef1ae8e201 /src/schema.rs | |
| parent | d83df803c9008dba1a34b5c23ac431efc1e0a456 (diff) | |
| download | rocket-blog-d2eea77842189c6964b51bc75ca5a62172b77dcd.tar.gz rocket-blog-d2eea77842189c6964b51bc75ca5a62172b77dcd.tar.bz2 rocket-blog-d2eea77842189c6964b51bc75ca5a62172b77dcd.zip | |
Add users table to schema.
Diffstat (limited to 'src/schema.rs')
| -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, +); |
