Skip to content

Commit

Permalink
Merge pull request #35 from mummhy0811/main
Browse files Browse the repository at this point in the history
[#33 #34]Fix: 이미지 답변 가능 여부/쪽지 공개 여부 확인 컬럼 추가
  • Loading branch information
mummhy0811 authored Oct 18, 2023
2 parents dc073a1 + ceabe7b commit 60f3e83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/onestep/server/entity/Letter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import javax.persistence.*;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.Id;

import java.util.Date;
Expand Down Expand Up @@ -34,4 +36,7 @@ public class Letter {
@Column(nullable = false)
private Date write_date;

@ColumnDefault("0")
private int letter_state;

}
5 changes: 5 additions & 0 deletions src/main/java/com/onestep/server/entity/Question.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.Id;

@ToString
Expand All @@ -21,4 +23,7 @@ public class Question {
@Column(nullable = false)
private String question_txt;

@ColumnDefault("0")
private boolean has_image;

}

0 comments on commit 60f3e83

Please sign in to comment.