diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-02-15 00:03:32 -0500 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-02-15 00:03:51 -0500 |
| commit | d410d75ca967d476784eaca22d6e49f21ca318dd (patch) | |
| tree | 77d1c364e075e6f6123d7fcd238a04496664e66b /src/db/schema.rs | |
| parent | 66eeaaab1777c6bb85627c2a41fd5234a7576f84 (diff) | |
start adding in diesel
Diffstat (limited to 'src/db/schema.rs')
| -rw-r--r-- | src/db/schema.rs | 21 |
1 files changed, 21 insertions, 0 deletions
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,
+);
|
