Skip to content

Commit

Permalink
refactor: 회원 탈퇴시 social_id만 Null로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Sep 15, 2023
1 parent a8dae2c commit c8b83df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/main/java/com/festago/member/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.hibernate.annotations.Where;

@Entity
@SQLDelete(sql = "UPDATE member SET deleted_at = now(), nickname = '탈퇴한 회원', profile_image = '', social_id = null, social_type = null WHERE id=?")
@SQLDelete(sql = "UPDATE member SET deleted_at = now(), nickname = '탈퇴한 회원', profile_image = '', social_id = null WHERE id=?")
@Where(clause = "deleted_at is null")
@Table(
uniqueConstraints = {
Expand All @@ -38,7 +38,6 @@ public class Member extends BaseTimeEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@NotNull
@Size(max = 255)
private String socialId;

Expand Down

0 comments on commit c8b83df

Please sign in to comment.