use serde_json::Value;
use std::fmt::Debug;
-#[derive(Queryable, Identifiable, PartialEq, Debug)]
-#[table_name = "activity"]
+#[derive(PartialEq, Eq, Debug, Queryable, Identifiable)]
+#[diesel(table_name = activity)]
pub struct Activity {
pub id: i32,
pub data: Value,
}
#[derive(Insertable, AsChangeset)]
-#[table_name = "activity"]
+#[diesel(table_name = activity)]
pub struct ActivityForm {
pub data: Value,
pub local: Option<bool>,