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