2017-08-20 23:17:16 +03:00
|
|
|
use chrono;
|
|
|
|
|
2017-09-01 17:34:24 +03:00
|
|
|
#[derive(Debug, Queryable)]
|
2017-08-21 00:44:52 +03:00
|
|
|
pub struct ArticleRevision {
|
2017-09-20 12:54:26 +03:00
|
|
|
pub sequence_number: i32,
|
|
|
|
|
2017-08-21 00:44:52 +03:00
|
|
|
pub article_id: i32,
|
2017-08-20 23:17:16 +03:00
|
|
|
pub revision: i32,
|
|
|
|
pub created: chrono::NaiveDateTime,
|
|
|
|
|
2017-09-20 12:54:26 +03:00
|
|
|
pub slug: String,
|
2017-08-20 23:17:16 +03:00
|
|
|
pub title: String,
|
|
|
|
pub body: String,
|
2017-09-20 12:54:26 +03:00
|
|
|
|
|
|
|
pub latest: bool,
|
2017-08-20 23:17:16 +03:00
|
|
|
}
|