Skip to content

Commit

Permalink
refactor(domain): @table 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kyum-q committed Sep 27, 2024
1 parent 1a6ffeb commit 379e913
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions backend/src/main/java/codezap/category/domain/Category.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,11 @@
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor
@Table(
uniqueConstraints = {
@UniqueConstraint(
name = "name_with_member",
columnNames = {"member_id", "name"}
)
},
indexes = {
@Index(name = "idx_member_id", columnList = "member_id")
}

uniqueConstraints = @UniqueConstraint(
name = "name_with_member",
columnNames = {"member_id", "name"}
),
indexes = @Index(name = "idx_member_id", columnList = "member_id")
)
@Getter
@EqualsAndHashCode(of = "id", callSuper = false)
Expand Down

0 comments on commit 379e913

Please sign in to comment.