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