feat(db): Support CreateThread message
This commit is contained in:
parent
f281749b8c
commit
fc7ca2900d
2 changed files with 29 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue