snix/src/models.rs
2018-04-08 16:08:26 +02:00

17 lines
308 B
Rust

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