feat(db): Support CreateThread message

This commit is contained in:
Vincent Ambo 2018-04-08 19:41:28 +02:00
parent f281749b8c
commit fc7ca2900d
2 changed files with 29 additions and 0 deletions

View file

@ -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,
}