-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Entity 추가 #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 🫶
@Column(nullable = false) | ||
private Date date; | ||
|
||
@Column(nullable = false) | ||
private String placeId; | ||
|
||
@Column(nullable = false) | ||
private String district; | ||
|
||
@Column(nullable = false) | ||
private String address; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
생각해봤는데 이 부분에 대한 값을 사용자가 보수 신청할 때 함께 요청하는 거면 Record로 옮겨야 할 것 같아요!
보수 신청 ui에서 주소랑 희망 일자를 같이 입력하는 구조면 이 값들까지 한번에 묶어서 Record 엔티티로 저장해야 하지 않을까 싶어서요 😶
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
생각해봤는데 이 부분에 대한 값을 사용자가 보수 신청할 때 함께 요청하는 거면 Record로 옮겨야 할 것 같아요! 보수 신청 ui에서 주소랑 희망 일자를 같이 입력하는 구조면 이 값들까지 한번에 묶어서 Record 엔티티로 저장해야 하지 않을까 싶어서요 😶
일반 저장(기록용)/ 수리 요청 이렇게 나눠서 저장하는걸로 얘기했던거 같아서 엔티티를 분리했어요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다!
@Entity | ||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@DiscriminatorColumn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유저 롤 타입도 이렇게 DType으로 일반 사용자랑 봉사자 구분해서 설정하는 걸로 생각하면 될까요?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유저 롤 타입도 이렇게 DType으로 일반 사용자랑 봉사자 구분해서 설정하는 걸로 생각하면 될까요?!
유저는 타입에 따라서 컬럼이 달라지지는 않는거 같아서 그냥 ENUM 타입으로 넣어도될거같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유저는 타입에 따라서 컬럼이 달라지지는 않는거 같아서 그냥 ENUM 타입으로 넣어도될거같습니다!
그럼 봉사자 신청할 때 개인 / 기관(단체) 나누지 않고 그냥 롤만 바뀌는 건가요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유저는 타입에 따라서 컬럼이 달라지지는 않는거 같아서 그냥 ENUM 타입으로 넣어도될거같습니다!
그럼 봉사자 신청할 때 개인 / 기관(단체) 나누지 않고 그냥 롤만 바뀌는 건가요??
넵 저는 그렇게 생각했는데, �롤에 따라 추가될 컬럼이 있을까요?
🔴 Summary
🟡 Changes Made
🟢 Other Information
🔵 PR Checklist
Please check if your PR fulfills the following requirements: