Add a cover field to posts

Referencing the media to use to illustrate the article
This commit is contained in:
Baptiste Gelez
2018-10-31 15:07:40 +01:00
parent 9f1b37648e
commit ab5edbc6a5
7 changed files with 15 additions and 1 deletions
+2
View File
@@ -150,6 +150,7 @@ table! {
ap_url -> Varchar,
subtitle -> Text,
source -> Text,
cover_id -> Nullable<Int4>,
}
}
@@ -211,6 +212,7 @@ joinable!(notifications -> users (user_id));
joinable!(post_authors -> posts (post_id));
joinable!(post_authors -> users (author_id));
joinable!(posts -> blogs (blog_id));
joinable!(posts -> medias (cover_id));
joinable!(reshares -> posts (post_id));
joinable!(reshares -> users (user_id));
joinable!(tags -> posts (post_id));