aboutsummaryrefslogtreecommitdiff
path: root/src/db/schema.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-03-03 02:39:24 -0500
committerNathan Perry <avaglir@gmail.com>2019-03-03 02:39:24 -0500
commit83a06bfbd18e4f539b8e42e8e65d719040863100 (patch)
tree93e93db99ee97b75672f714e48fdfd3ce53bde92 /src/db/schema.rs
parent410596f875111fab3d666a472c61be8869d7f7ec (diff)
record meme invocations
Diffstat (limited to 'src/db/schema.rs')
-rw-r--r--src/db/schema.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/schema.rs b/src/db/schema.rs
index 8749731..1ab5fa1 100644
--- a/src/db/schema.rs
+++ b/src/db/schema.rs
@@ -27,6 +27,17 @@ table! {
}
table! {
+ invocation_records (id) {
+ id -> Int4,
+ user_id -> Int8,
+ message_id -> Int8,
+ meme_id -> Int4,
+ time -> Timestamp,
+ random -> Bool,
+ }
+}
+
+table! {
memes (id) {
id -> Int4,
title -> Varchar,
@@ -67,6 +78,7 @@ allow_tables_to_appear_in_same_query!(
audio,
audit_records,
images,
+ invocation_records,
memes,
metadata,
tombstones,