feat(db/models): Add handling of CreatePost message
This commit is contained in:
parent
55b28f8136
commit
148dfc39c8
2 changed files with 30 additions and 2 deletions
|
|
@ -24,3 +24,10 @@ pub struct NewThread {
|
|||
pub title: String,
|
||||
pub body: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Insertable)]
|
||||
#[table_name="posts"]
|
||||
pub struct NewPost {
|
||||
pub thread_id: i32,
|
||||
pub body: String,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue