diff options
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, } |