about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs
index 5c7bbb12d36a..3ad4a5ed9d7d 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -89,6 +89,13 @@ pub struct NewThread {
 }
 
 #[derive(Deserialize, Insertable)]
+#[table_name="users"]
+pub struct NewUser {
+    pub email: String,
+    pub name: String,
+}
+
+#[derive(Deserialize, Insertable)]
 #[table_name="posts"]
 pub struct NewPost {
     pub thread_id: i32,