diff --git a/src/entities/follow_relation.rs b/src/entities/follow_relation.rs index c0c9c5c..42fc64f 100644 --- a/src/entities/follow_relation.rs +++ b/src/entities/follow_relation.rs @@ -5,20 +5,20 @@ use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] #[sea_orm(table_name = "follow_relation")] pub struct Model { - #[sea_orm(primary_key)] + #[sea_orm(primary_key, auto_increment = false)] pub id: String, pub followee_id: String, pub follower_id: String, - pub ap_json: String, - pub ap_accept_json: Option, - pub ap_id: Option, - pub ap_accept_id: Option, - pub accept_id: Option, - pub remote: bool, pub followee_host: Option, pub follower_host: Option, pub followee_inbox: Option, pub follower_inbox: Option, + pub accept_id: Option, + pub ap_id: Option, + pub ap_accept_id: Option, + pub remote: bool, + pub ap_json: String, + pub ap_accept_json: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]