X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Factivity.rs;h=2d256a5b3c894dfabae7cbbf99ebb920d4116717;hb=c9f140742925d6da20103124b49f2b58a35fc2b8;hp=5d09ebfd5893315a6c3eaa568ac90240d8a1aeba;hpb=4e6409f325bca5b2727b19c24d77ffa2b59109b1;p=lemmy.git diff --git a/crates/db_schema/src/source/activity.rs b/crates/db_schema/src/source/activity.rs index 5d09ebfd..2d256a5b 100644 --- a/crates/db_schema/src/source/activity.rs +++ b/crates/db_schema/src/source/activity.rs @@ -2,8 +2,8 @@ use crate::{newtypes::DbUrl, schema::activity}; use serde_json::Value; use std::fmt::Debug; -#[derive(PartialEq, Debug, Queryable, Identifiable)] -#[table_name = "activity"] +#[derive(PartialEq, Eq, Debug, Queryable, Identifiable)] +#[diesel(table_name = activity)] pub struct Activity { pub id: i32, pub data: Value, @@ -15,7 +15,7 @@ pub struct Activity { } #[derive(Insertable, AsChangeset)] -#[table_name = "activity"] +#[diesel(table_name = activity)] pub struct ActivityForm { pub data: Value, pub local: Option,