diff --git a/src/main/java/com/seoultech/synergybe/domain/post/Post.java b/src/main/java/com/seoultech/synergybe/domain/post/Post.java index 8d76f6c..208284e 100644 --- a/src/main/java/com/seoultech/synergybe/domain/post/Post.java +++ b/src/main/java/com/seoultech/synergybe/domain/post/Post.java @@ -28,11 +28,10 @@ public class Post extends BaseTime { @Id @Column(name = "post_id") - private String id; + private Long id; -// @Column(name = "post_sequence") -// @GeneratedValue(strategy = GenerationType.IDENTITY) -// private Long postSequence; + @Column(name = "post_token") + private String postToken; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "user_id") @@ -69,8 +68,9 @@ public class Post extends BaseTime { private IsDeleted isDeleted = new IsDeleted(IS_DELETED_DEFAULT); @Builder - public Post(String id, User user, String title, String content, String thumbnailImageId) { + public Post(Long id, String postToken, User user, String title, String content, String thumbnailImageId) { this.id = id; + this.postToken = postToken; this.user = user; this.title = new PostTitle(title); this.content = new PostContent(content);