1 use crate::{schema::private_message, Url};
4 #[derive(Clone, Queryable, Associations, Identifiable, PartialEq, Debug, Serialize)]
5 #[table_name = "private_message"]
6 pub struct PrivateMessage {
13 pub published: chrono::NaiveDateTime,
14 pub updated: Option<chrono::NaiveDateTime>,
19 #[derive(Insertable, AsChangeset)]
20 #[table_name = "private_message"]
21 pub struct PrivateMessageForm {
23 pub recipient_id: i32,
25 pub deleted: Option<bool>,
26 pub read: Option<bool>,
27 pub published: Option<chrono::NaiveDateTime>,
28 pub updated: Option<chrono::NaiveDateTime>,
29 pub ap_id: Option<Url>,