2 schema::person_mention,
3 source::comment::Comment,
8 use serde::{Deserialize, Serialize};
11 Clone, Queryable, Associations, Identifiable, PartialEq, Debug, Serialize, Deserialize,
13 #[belongs_to(Comment)]
14 #[table_name = "person_mention"]
15 pub struct PersonMention {
16 pub id: PersonMentionId,
17 pub recipient_id: PersonId,
18 pub comment_id: CommentId,
20 pub published: chrono::NaiveDateTime,
23 #[derive(Insertable, AsChangeset)]
24 #[table_name = "person_mention"]
25 pub struct PersonMentionForm {
26 pub recipient_id: PersonId,
27 pub comment_id: CommentId,
28 pub read: Option<bool>,