summaryrefslogtreecommitdiff
path: root/src/schema.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/schema.rs b/src/schema.rs
index 23690df..e69bed3 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -18,21 +18,13 @@ table! {
}
table! {
- entry_data (username, entry_type, entry_id, data_type, data_id) {
- username -> Varchar,
- entry_type -> Varchar,
- entry_id -> Int8,
- data_type -> Varchar,
- data_id -> Int8,
- }
-}
-
-table! {
raw_data (data_type, id) {
data_type -> Varchar,
id -> Int8,
username -> Varchar,
payload -> Jsonb,
+ entry_type -> Nullable<Varchar>,
+ entry_id -> Nullable<Int8>,
}
}
@@ -67,12 +59,4 @@ joinable!(raw_data -> users (username));
joinable!(strava_tokens -> users (username));
joinable!(tasks -> users (username));
-allow_tables_to_appear_in_same_query!(
- config,
- entries,
- entry_data,
- raw_data,
- strava_tokens,
- tasks,
- users,
-);
+allow_tables_to_appear_in_same_query!(config, entries, raw_data, strava_tokens, tasks, users,);