diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-04 19:58:15 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-02-04 19:58:15 -0500 |
commit | 97b82520aacacbe600c8918b26b5b29b8d47d4d1 (patch) | |
tree | c130abd56069c0b2a429d590dfb6ec7b54c68585 /src/schema.rs | |
parent | ca69f19d0492ae420ba54a158676d246b0307be0 (diff) |
Add entry table and link with raw data
Diffstat (limited to 'src/schema.rs')
-rw-r--r-- | src/schema.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs index 2303714..23690df 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -18,6 +18,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, id -> Int8, @@ -60,6 +70,7 @@ joinable!(tasks -> users (username)); allow_tables_to_appear_in_same_query!( config, entries, + entry_data, raw_data, strava_tokens, tasks, |