Add a tag model

This commit is contained in:
Bat
2018-09-05 19:05:53 +01:00
parent e16acf8436
commit 2b7a5bee93
5 changed files with 44 additions and 0 deletions
+11
View File
@@ -139,6 +139,15 @@ table! {
}
}
table! {
tags (id) {
id -> Int4,
tag -> Text,
is_hastag -> Bool,
post_id -> Int4,
}
}
table! {
users (id) {
id -> Int4,
@@ -178,6 +187,7 @@ joinable!(post_authors -> users (author_id));
joinable!(posts -> blogs (blog_id));
joinable!(reshares -> posts (post_id));
joinable!(reshares -> users (user_id));
joinable!(tags -> posts (post_id));
joinable!(users -> instances (instance_id));
allow_tables_to_appear_in_same_query!(
@@ -193,5 +203,6 @@ allow_tables_to_appear_in_same_query!(
post_authors,
posts,
reshares,
tags,
users,
);