diff --git a/src/main/java/com/swmarastro/mykkumiserver/like/Likes.java b/src/main/java/com/swmarastro/mykkumiserver/like/Likes.java index 11d3200..ca54494 100644 --- a/src/main/java/com/swmarastro/mykkumiserver/like/Likes.java +++ b/src/main/java/com/swmarastro/mykkumiserver/like/Likes.java @@ -11,6 +11,9 @@ @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor(access = AccessLevel.PROTECTED) +@Table(name = "likes", uniqueConstraints = { + @UniqueConstraint(columnNames = {"post_id", "user_id"}) +}) public class Likes extends BaseEntity { @Id