| 1 | #![allow(warnings)] |
| 2 | |
| 3 | table! { |
| 4 | episodes (id) { |
| 5 | id -> Integer, |
| 6 | title -> Text, |
| 7 | uri -> Nullable<Text>, |
| 8 | local_uri -> Nullable<Text>, |
| 9 | description -> Nullable<Text>, |
| 10 | image_uri -> Nullable<Text>, |
| 11 | epoch -> Timestamp, |
| 12 | length -> Nullable<Integer>, |
| 13 | duration -> Nullable<Integer>, |
| 14 | guid -> Nullable<Text>, |
| 15 | played -> Nullable<Timestamp>, |
| 16 | play_position -> Integer, |
| 17 | show_id -> Integer, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | table! { |
| 22 | shows (id) { |
| 23 | id -> Integer, |
| 24 | title -> Text, |
| 25 | link -> Text, |
| 26 | description -> Text, |
| 27 | image_uri -> Nullable<Text>, |
| 28 | image_uri_hash -> Nullable<Binary>, |
| 29 | image_cached -> Timestamp, |
| 30 | source_id -> Integer, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | table! { |
| 35 | source (id) { |
| 36 | id -> Integer, |
| 37 | uri -> Text, |
| 38 | last_modified -> Nullable<Text>, |
| 39 | http_etag -> Nullable<Text>, |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | table! { |
| 44 | discovery_settings (platform_id) { |
| 45 | platform_id -> Text, |
| 46 | enabled -> Bool, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | allow_tables_to_appear_in_same_query!(episodes, shows, source, discovery_settings); |