diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-09T07·20+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-09T07·20+0200 |
commit | 7c73949066cf1b730a2c8c3408fa016048538716 (patch) | |
tree | a9cc78f0b8fb147c9f91ff8a9b8b20626065c3bc /src/models.rs | |
parent | 64453ec6834f657de8c63276fb93ff8b87cf6017 (diff) |
feat(handlers): Extract & add author to thread and post information
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs index daeccf852a67..388dab48534d 100644 --- a/src/models.rs +++ b/src/models.rs @@ -27,6 +27,8 @@ pub struct Post { pub struct NewThread { pub title: String, pub body: String, + pub author_name: String, + pub author_email: String, } #[derive(Deserialize, Insertable)] @@ -34,4 +36,6 @@ pub struct NewThread { pub struct NewPost { pub thread_id: i32, pub body: String, + pub author_name: String, + pub author_email: String, } |