From 97b82520aacacbe600c8918b26b5b29b8d47d4d1 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Tue, 4 Feb 2020 19:58:15 -0500 Subject: Add entry table and link with raw data --- src/schema.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/schema.rs') diff --git a/src/schema.rs b/src/schema.rs index 2303714..23690df 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -17,6 +17,16 @@ 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, @@ -60,6 +70,7 @@ joinable!(tasks -> users (username)); allow_tables_to_appear_in_same_query!( config, entries, + entry_data, raw_data, strava_tokens, tasks, -- cgit v1.2.3