diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T17·41+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T17·41+0200 |
commit | fc7ca2900d656974891c7e5ccfd532ab93aade94 (patch) | |
tree | 67703186886f1868a92b72b6a61e2db91f4ab252 /src/models.rs | |
parent | f281749b8c5fbd80b77159f170a5ab173ec69d71 (diff) |
feat(db): Support CreateThread message
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs index 42d8d11649ff..fc67c260a448 100644 --- a/src/models.rs +++ b/src/models.rs @@ -17,3 +17,10 @@ pub struct Post { pub body: String, pub posted: DateTime<Utc>, } + +#[derive(Insertable)] +#[table_name="threads"] +pub struct NewThread { + pub title: String, + pub body: String, +} |