use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use sqlx::{self, FromRow}; #[derive(Clone, Serialize, Deserialize, Debug, FromRow)] pub struct RawPage { pub id: i64, pub slug: String, pub title: String, pub note_id: i64, pub creation_date: DateTime, pub updated_date: DateTime, pub lastview_date: DateTime, pub deleted_date: Option>, } #[derive(Clone, Serialize, Deserialize, Debug, FromRow)] pub struct RawNote { pub id: i64, pub uuid: String, pub content: String, pub notetype: String, pub creation_date: DateTime, pub updated_date: DateTime, pub lastview_date: DateTime, pub deleted_date: Option>, }