diff options
author | Filip785 <fdjuricic98@gmail.com> | 2020-07-08 02:28:47 +0200 |
---|---|---|
committer | Filip785 <fdjuricic98@gmail.com> | 2020-07-08 02:28:47 +0200 |
commit | 68e9755e593bbd8230eab2a123e822022721f071 (patch) | |
tree | ae11c818f1678ab1780ab95872ecc68cc9114af4 /server/src/db/comment_view.rs | |
parent | 8fda7d00d5ec9e415b44aa10cff3c4d735563a20 (diff) |
Add cake day display in user page & posts/comments #682
Diffstat (limited to 'server/src/db/comment_view.rs')
-rw-r--r-- | server/src/db/comment_view.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/db/comment_view.rs b/server/src/db/comment_view.rs index d1b27a3c..75ed4cb7 100644 --- a/server/src/db/comment_view.rs +++ b/server/src/db/comment_view.rs @@ -28,6 +28,7 @@ table! { creator_local -> Bool, creator_name -> Varchar, creator_avatar -> Nullable<Text>, + creator_published -> Timestamp, score -> BigInt, upvotes -> BigInt, downvotes -> BigInt, @@ -63,6 +64,7 @@ table! { creator_local -> Bool, creator_name -> Varchar, creator_avatar -> Nullable<Text>, + creator_published -> Timestamp, score -> BigInt, upvotes -> BigInt, downvotes -> BigInt, @@ -101,6 +103,7 @@ pub struct CommentView { pub creator_local: bool, pub creator_name: String, pub creator_avatar: Option<String>, + pub creator_published: chrono::NaiveDateTime, pub score: i64, pub upvotes: i64, pub downvotes: i64, @@ -314,6 +317,7 @@ table! { creator_local -> Bool, creator_name -> Varchar, creator_avatar -> Nullable<Text>, + creator_published -> Timestamp, score -> BigInt, upvotes -> BigInt, downvotes -> BigInt, @@ -353,6 +357,7 @@ pub struct ReplyView { pub creator_local: bool, pub creator_name: String, pub creator_avatar: Option<String>, + pub creator_published: chrono::NaiveDateTime, pub score: i64, pub upvotes: i64, pub downvotes: i64, @@ -576,6 +581,7 @@ mod tests { published: inserted_comment.published, updated: None, creator_name: inserted_user.name.to_owned(), + creator_published: inserted_user.published, creator_avatar: None, score: 1, downvotes: 0, @@ -609,6 +615,7 @@ mod tests { published: inserted_comment.published, updated: None, creator_name: inserted_user.name.to_owned(), + creator_published: inserted_user.published, creator_avatar: None, score: 1, downvotes: 0, |