1 use crate::{schema::person_block, PersonBlockId, PersonId};
4 #[derive(Clone, Queryable, Associations, Identifiable, PartialEq, Debug, Serialize)]
5 #[table_name = "person_block"]
6 pub struct PersonBlock {
8 pub person_id: PersonId,
9 pub target_id: PersonId,
10 pub published: chrono::NaiveDateTime,
13 #[derive(Insertable, AsChangeset)]
14 #[table_name = "person_block"]
15 pub struct PersonBlockForm {
16 pub person_id: PersonId,
17 pub target_id: PersonId,