From 883127509785704be02431d9ac8c36c7dbdeeda6 Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Sat, 3 Aug 2024 07:04:31 +0200 Subject: [PATCH] fix: pls work --- src/entities/follow_relation.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)]