From d410d75ca967d476784eaca22d6e49f21ca318dd Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Thu, 15 Feb 2018 00:03:32 -0500 Subject: start adding in diesel --- src/db/schema.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/db/schema.rs (limited to 'src/db/schema.rs') diff --git a/src/db/schema.rs b/src/db/schema.rs new file mode 100644 index 0000000..b29a1ca --- /dev/null +++ b/src/db/schema.rs @@ -0,0 +1,21 @@ +table! { + audio_memes (id) { + id -> Int4, + title -> Varchar, + link -> Varchar, + } +} + +table! { + text_memes (id) { + id -> Int4, + title -> Varchar, + content -> Text, + pic_related -> Varchar, + } +} + +allow_tables_to_appear_in_same_query!( + audio_memes, + text_memes, +); -- cgit v1.3.1