blob: 74b386a19cf944abd20f17ad461b397e03029383 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use chrono::prelude::{DateTime, Utc};
#[derive(Queryable, Serialize)]
pub struct Thread {
pub id: i32,
pub title: String,
pub body: String,
pub posted: DateTime<Utc>,
}
#[derive(Queryable, Serialize)]
pub struct Post {
pub id: i32,
pub thread: i32,
pub body: String,
pub posted: DateTime<Utc>,
}
|