2 newtypes::{PersonBlockId, PersonId},
5 use serde::{Deserialize, Serialize};
8 Clone, Queryable, Associations, Identifiable, PartialEq, Debug, Serialize, Deserialize,
10 #[table_name = "person_block"]
11 pub struct PersonBlock {
12 pub id: PersonBlockId,
13 pub person_id: PersonId,
14 pub target_id: PersonId,
15 pub published: chrono::NaiveDateTime,
18 #[derive(Insertable, AsChangeset)]
19 #[table_name = "person_block"]
20 pub struct PersonBlockForm {
21 pub person_id: PersonId,
22 pub target_id: PersonId,