From a6a597cc0c8f840a95a405b85b74ebfb01380a88 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 8 Dec 2019 23:28:20 -0800 Subject: [PATCH] channels alongside users table --- server/src/db_io/src/schema.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/src/db_io/src/schema.rs b/server/src/db_io/src/schema.rs index 934d893..47aeb97 100644 --- a/server/src/db_io/src/schema.rs +++ b/server/src/db_io/src/schema.rs @@ -1,3 +1,11 @@ +table! { + channels (id) { + id -> Integer, + name -> Varchar, + ctype -> Integer, + } +} + table! { users (id) { id -> Integer, @@ -6,3 +14,8 @@ table! { native -> Nullable, } } + +allow_tables_to_appear_in_same_query!( + channels, + users, +);