diff options
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,
+);
|
