diff options
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 d14c89c4c7f8..02392c8fc60c 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -19,6 +19,17 @@ table! { } } +// Note: Manually inserted as print-schema does not add views. +table! { + thread_index (thread_id){ + thread_id -> Integer, + title -> Text, + author_name -> Text, + posted -> Timestamptz, + post_id -> Integer, + } +} + joinable!(posts -> threads (thread_id)); allow_tables_to_appear_in_same_query!( |