diff --git a/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUser.java b/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUser.java index 3e3ea9e..2f383a8 100644 --- a/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUser.java +++ b/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUser.java @@ -4,6 +4,7 @@ import com.mybatisflex.annotation.Column; import com.mybatisflex.annotation.Id; import com.mybatisflex.annotation.KeyType; import com.mybatisflex.annotation.Table; +import com.mybatisflex.core.keygen.KeyGenerators; import lombok.Data; import java.io.Serializable; @@ -22,7 +23,7 @@ public class SchisandraSocialUser implements Serializable { /** * */ - @Id(value = "id", keyType = KeyType.Auto) + @Id(keyType=KeyType.Generator, value= KeyGenerators.flexId) private Long id; /** diff --git a/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUserAuth.java b/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUserAuth.java index c9af4a8..164c61c 100644 --- a/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUserAuth.java +++ b/schisandra-cloud-storage-auth/schisandra-cloud-storage-auth-infra/src/main/java/com/schisandra/auth/infra/basic/entity/SchisandraSocialUserAuth.java @@ -4,6 +4,7 @@ import com.mybatisflex.annotation.Column; import com.mybatisflex.annotation.Id; import com.mybatisflex.annotation.KeyType; import com.mybatisflex.annotation.Table; +import com.mybatisflex.core.keygen.KeyGenerators; import lombok.Data; import java.io.Serializable; @@ -22,7 +23,7 @@ public class SchisandraSocialUserAuth implements Serializable { /** * */ - @Id(value = "id", keyType = KeyType.Auto) + @Id(keyType=KeyType.Generator, value= KeyGenerators.flexId) private Long id; /** @@ -64,7 +65,7 @@ public class SchisandraSocialUserAuth implements Serializable { /** * */ - @Column("is_deleted") + @Column(value = "is_deleted",isLogicDelete = true) private Integer isDeleted; }