about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T20·37+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T20·37+0200
commit115f50ae37338450c3533f403a8404a84cfb8670 (patch)
tree541f7b0e41c9c9baadc0f4f0019c636c10b049eb /src/models.rs
parent249f17b60a0313a66443a5c67403794986430e34 (diff)
chore(models/schema): Update with author fields
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs
index 28b1caa7cf32..daeccf852a67 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -7,6 +7,8 @@ pub struct Thread {
     pub title: String,
     pub body: String,
     pub posted: DateTime<Utc>,
+    pub author_name: String,
+    pub author_email: String,
 }
 
 #[derive(Identifiable, Queryable, Serialize, Associations)]
@@ -16,6 +18,8 @@ pub struct Post {
     pub thread_id: i32,
     pub body: String,
     pub posted: DateTime<Utc>,
+    pub author_name: String,
+    pub author_email: String,
 }
 
 #[derive(Deserialize, Insertable)]