blob: a7ed8a91df030adbf88b7ee26f04c9c8a9b108ee (
plain) (
tree)
|
|
use chrono::prelude::{DateTime, Utc};
#[derive(Queryable)]
pub struct Thread {
pub id: i32,
pub title: String,
pub body: String,
pub posted: DateTime<Utc>,
}
pub struct Post {
pub id: i32,
pub thread: i32,
pub body: String,
pub posted: DateTime<Utc>,
}
|