diff options
Diffstat (limited to 'src/schema.rs')
-rw-r--r-- | src/schema.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/schema.rs b/src/schema.rs index e605bda..df20c4f 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -8,6 +8,15 @@ table! { } table! { + raw_data (data_type, id) { + data_type -> Varchar, + id -> Int8, + username -> Varchar, + payload -> Nullable<Jsonb>, + } +} + +table! { strava_tokens (username) { username -> Varchar, refresh_token -> Varchar, @@ -33,7 +42,14 @@ table! { } } +joinable!(raw_data -> users (username)); joinable!(strava_tokens -> users (username)); joinable!(tasks -> users (username)); -allow_tables_to_appear_in_same_query!(config, strava_tokens, tasks, users,); +allow_tables_to_appear_in_same_query!( + config, + raw_data, + strava_tokens, + tasks, + users, +); |