1 use crate::{newtypes::DbUrl, schema::activity};
5 #[derive(Queryable, Identifiable, PartialEq, Debug)]
6 #[table_name = "activity"]
11 pub published: chrono::NaiveDateTime,
12 pub updated: Option<chrono::NaiveDateTime>,
13 pub ap_id: Option<DbUrl>,
14 pub sensitive: Option<bool>,
17 #[derive(Insertable, AsChangeset)]
18 #[table_name = "activity"]
19 pub struct ActivityForm {
21 pub local: Option<bool>,
22 pub updated: Option<chrono::NaiveDateTime>,