1 use crate::{schema::user_mention, source::comment::Comment};
4 #[derive(Clone, Queryable, Associations, Identifiable, PartialEq, Debug, Serialize)]
6 #[table_name = "user_mention"]
7 pub struct UserMention {
12 pub published: chrono::NaiveDateTime,
15 #[derive(Insertable, AsChangeset)]
16 #[table_name = "user_mention"]
17 pub struct UserMentionForm {
18 pub recipient_id: i32,
20 pub read: Option<bool>,