Merge branch 'BE/userinfo' into 'backend'

feat: qna createAT timestamp로 변경

See merge request s11-webmobile1-sub2/S11P12A701!114
This commit is contained in:
박정민 2024-08-08 16:35:58 +09:00
commit 56689c8b14

View File

@ -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;
} }