about summary refs log blame commit diff
path: root/src/models.rs
blob: e502891305a2fa2121632a2ad2ed308c8f732445 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                     
                    





                              
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>,
}