summaryrefslogtreecommitdiff
path: root/src/schema.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs
index 1584424..2303714 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -8,6 +8,16 @@ table! {
}
table! {
+ entries (username, entry_type, id) {
+ username -> Varchar,
+ entry_type -> Varchar,
+ id -> Int8,
+ timestamp -> Nullable<Timestamptz>,
+ payload -> Jsonb,
+ }
+}
+
+table! {
raw_data (data_type, id) {
data_type -> Varchar,
id -> Int8,
@@ -42,12 +52,14 @@ table! {
}
}
+joinable!(entries -> users (username));
joinable!(raw_data -> users (username));
joinable!(strava_tokens -> users (username));
joinable!(tasks -> users (username));
allow_tables_to_appear_in_same_query!(
config,
+ entries,
raw_data,
strava_tokens,
tasks,