Skip to content

Commit

Permalink
Merge pull request #101 from onetime-with-members/fix/#100/unique
Browse files Browse the repository at this point in the history
[fix] : UK를 설정하여 동시성 문제를 해결한다
  • Loading branch information
bbbang105 authored Oct 28, 2024
2 parents 0ac7d6a + 59f2649 commit 10fcb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class User extends BaseEntity {
@Column(name = "provider", nullable = false, length = 50)
private String provider;

@Column(name = "provider_id", nullable = false, length = 50)
@Column(name = "provider_id", nullable = false, length = 50, unique = true)
private String providerId;

@OneToMany(mappedBy = "user",cascade = CascadeType.ALL, fetch = FetchType.LAZY)
Expand Down

0 comments on commit 10fcb5d

Please sign in to comment.