Skip to content

Commit

Permalink
RAC-466 fix : 신청일, 매칭일 컬럼 추가, 교수님 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Nov 20, 2024
1 parent 79455aa commit 6e442a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public record WishCreateRequest(
String field,
String postgradu,
String professor,
String lab,
String phoneNumber
) {}
11 changes: 11 additions & 0 deletions src/main/java/com/postgraduate/domain/wish/domain/entity/Wish.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import java.time.LocalDateTime;

@Entity
@Builder
Expand Down Expand Up @@ -37,6 +41,13 @@ public class Wish {
@Builder.Default
private Status status = Status.WAITING;

@Column(nullable = false)
@CreationTimestamp
private LocalDateTime createdAt;

@UpdateTimestamp
private LocalDateTime updatedAt;

protected void updateDone() {
this.status = Status.MATCHED;
}
Expand Down

0 comments on commit 6e442a2

Please sign in to comment.