Skip to content

Commit

Permalink
feat: user number unique 제약 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Nov 18, 2024
1 parent 9fcabb5 commit 13bff01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion server/src/main/java/haengdong/user/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class User extends BaseEntity {
@Column(length = MAX_ACCOUNT_NUMBER_LENGTH)
private String accountNumber;

@Column(unique = true, nullable = false)
@Column(unique = true)
private String memberNumber;

private User(String nickname, String password, String bank, String accountNumber, String memberNumber) {
Expand Down
15 changes: 7 additions & 8 deletions server/src/test/java/haengdong/application/EventServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.mockito.BDDMockito.given;

import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.mock.mockito.MockBean;
import haengdong.common.exception.HaengdongException;
import haengdong.event.application.EventService;
import haengdong.event.application.request.EventGuestAppRequest;
import haengdong.event.application.request.EventUpdateAppRequest;
Expand All @@ -24,13 +19,17 @@
import haengdong.event.domain.bill.Bill;
import haengdong.event.domain.bill.BillRepository;
import haengdong.event.domain.event.Event;
import haengdong.event.domain.event.EventRepository;
import haengdong.event.domain.event.image.EventImage;
import haengdong.event.domain.event.image.EventImageRepository;
import haengdong.event.domain.event.EventRepository;
import haengdong.event.domain.event.member.EventMember;
import haengdong.event.domain.event.member.EventMemberRepository;
import haengdong.common.exception.HaengdongException;
import haengdong.support.fixture.Fixture;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;

class EventServiceTest extends ServiceTestSupport {

Expand Down

0 comments on commit 13bff01

Please sign in to comment.