feat: qna createAT timestamp로 변경
This commit is contained in:
parent
95f06da233
commit
349c85ff74
@ -20,7 +20,7 @@ public class Qna {
|
|||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name= "qna_id")
|
@Column(name = "qna_id")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ public class Qna {
|
|||||||
|
|
||||||
|
|
||||||
@Column(name = "created_at")
|
@Column(name = "created_at")
|
||||||
@Temporal(TemporalType.DATE)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date createdAt;
|
private Date createdAt;
|
||||||
|
|
||||||
@Column(name = "modified_at")
|
@Column(name = "modified_at")
|
||||||
@ -45,13 +45,12 @@ public class Qna {
|
|||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name= "id")
|
@JoinColumn(name = "id")
|
||||||
private User user;
|
private User user;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name= "lecture_id")
|
@JoinColumn(name = "lecture_id")
|
||||||
private Lecture lecture;
|
private Lecture lecture;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user