1 use crate::{schema::person_block, PersonBlockId, PersonId};
2 use serde::{Deserialize, Serialize};
5 Clone, Queryable, Associations, Identifiable, PartialEq, Debug, Serialize, Deserialize,
7 #[table_name = "person_block"]
8 pub struct PersonBlock {
10 pub person_id: PersonId,
11 pub target_id: PersonId,
12 pub published: chrono::NaiveDateTime,
15 #[derive(Insertable, AsChangeset)]
16 #[table_name = "person_block"]
17 pub struct PersonBlockForm {
18 pub person_id: PersonId,
19 pub target_id: PersonId,