-use crate::{schema::activity, DbUrl};
+use crate::{newtypes::DbUrl, schema::activity};
use serde_json::Value;
use std::fmt::Debug;
pub local: bool,
pub published: chrono::NaiveDateTime,
pub updated: Option<chrono::NaiveDateTime>,
- pub ap_id: Option<DbUrl>,
+ pub ap_id: DbUrl,
pub sensitive: Option<bool>,
}
#[table_name = "activity"]
pub struct ActivityForm {
pub data: Value,
- pub local: bool,
+ pub local: Option<bool>,
pub updated: Option<chrono::NaiveDateTime>,
pub ap_id: DbUrl,
pub sensitive: bool,