Add a Media model

This commit is contained in:
Bat
2018-09-02 12:34:48 +01:00
parent 2c33e1612d
commit 0b5eb2c946
5 changed files with 57 additions and 2 deletions
+13
View File
@@ -72,6 +72,18 @@ table! {
}
}
table! {
medias (id) {
id -> Int4,
file_path -> Text,
alt_text -> Text,
is_remote -> Bool,
remote_url -> Nullable<Text>,
sensitive -> Bool,
content_warning -> Nullable<Text>,
}
}
table! {
mentions (id) {
id -> Int4,
@@ -170,6 +182,7 @@ allow_tables_to_appear_in_same_query!(
follows,
instances,
likes,
medias,
mentions,
notifications,
post_authors,