2020-09-29 21:27:11 +00:00
|
|
|
use chrono::{DateTime, Utc};
|
2020-11-03 02:32:01 +00:00
|
|
|
// use derive_builder::Builder;
|
2020-10-27 01:54:56 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
2020-11-03 02:32:01 +00:00
|
|
|
// use shrinkwraprs::Shrinkwrap;
|
2020-09-29 00:33:43 +00:00
|
|
|
use sqlx::{self, FromRow};
|
|
|
|
|
2020-10-27 01:54:56 +00:00
|
|
|
#[derive(Clone, Serialize, Deserialize, Debug, FromRow)]
|
2020-11-03 02:32:01 +00:00
|
|
|
pub struct RawZettle {
|
|
|
|
pub id: String,
|
2020-10-27 01:54:56 +00:00
|
|
|
pub content: String,
|
2020-11-03 02:32:01 +00:00
|
|
|
pub kind: String,
|
2020-10-27 01:54:56 +00:00
|
|
|
pub position: i64,
|
|
|
|
pub creation_date: DateTime<Utc>,
|
|
|
|
pub updated_date: DateTime<Utc>,
|
|
|
|
pub lastview_date: DateTime<Utc>,
|
|
|
|
pub deleted_date: Option<DateTime<Utc>>,
|
|
|
|
}
|