summaryrefslogtreecommitdiff
path: root/src/schema.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/schema.rs b/src/schema.rs
index 7cf2892..8748f3c 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -17,6 +17,16 @@ table! {
}
table! {
+ tasks (id) {
+ id -> Int8,
+ state -> Varchar,
+ start_at -> Timestamptz,
+ username -> Varchar,
+ payload -> Jsonb,
+ }
+}
+
+table! {
users (username) {
username -> Varchar,
password -> Varchar,
@@ -24,5 +34,11 @@ table! {
}
joinable!(strava_tokens -> users (username));
+joinable!(tasks -> users (username));
-allow_tables_to_appear_in_same_query!(config, strava_tokens, users,);
+allow_tables_to_appear_in_same_query!(
+ config,
+ strava_tokens,
+ tasks,
+ users,
+);