use crate::{schema::activity, DbUrl}; use serde_json::Value; use std::fmt::Debug; #[derive(Queryable, Identifiable, PartialEq, Debug)] #[table_name = "activity"] pub struct Activity { pub id: i32, pub data: Value, pub local: bool, pub published: chrono::NaiveDateTime, pub updated: Option, pub ap_id: Option, pub sensitive: Option, } #[derive(Insertable, AsChangeset)] #[table_name = "activity"] pub struct ActivityForm { pub data: Value, pub local: Option, pub updated: Option, pub ap_id: DbUrl, pub sensitive: bool, }